Pdf generation with table of content - asp.net-mvc-3

I'm creating a web portal for financial institute and we were asked to create a report with table of contents and page numbers and headings. For example, this report looks like ordinary ebook that contains images, table of contents, page numbers, headings, etc.
We are using ASP.net MVC 3, Entity framework and MSSQL server for our infrastructure.
What are the options that I have for considering this pdf generation ?
Are there any open source solutions ?
I'm familiar with docbook approach XSLT and XSFO, however these bit hard to implement and complex.
What we are searching is a easy apporach ?

You can use ItextSharp DLL to generate pdf with Table as you want.
you can download from below link.
http://sourceforge.net/projects/itextsharp/

Related

Docx generation - reuse

I'm looking to generate docx and pdf documents in my java application. The best, most cost effective solution seems to be xdocreport - I've started using it and it's good.
However, xdocreport doesn't seem to allow reuse of common sections across documents.
Eg.
I want to create two documents - order and invoice. Both have a customer section which should be identical. It would be nice if I could maintain a single customer template that can be applied to both documents.
Are there any libraries (free or paid) that have this functionality.
The commercial product Docmosis can create DocX and Pdf and has an inert/merge capability meaning you can put common content into a template and merge/reference/insert with other templates. It has a Java API and you can try the cloud service without having to install anything to see if it suits your purposes.
Please note I work for Docmosis.
I hope that helps.

Generating PDF files from Database using CodeIgniter

Generating PDF files from Database using CodeIgniter
for example,
when i click save button all contents in the table can downloaded as pdf format
please help me
thanks...
Take a look at this article.
http://www.christophermonnat.com/2008/08/generating-pdf-files-using-codeigniter/
Also my answer is helful too.
cezPDF in Codeigniter 2
on the user click you should hit a controller function which will query the database and load a view file which you can pass to this library and it will throw it as pdf.
There is no native PDF library in CodeIgniter, so you need to use an third party library or a third party software-as-a-service (SaaS) to generate the PDF.
Here is what I did for one client.
I first generate a nicely formatted, print-friendly HTML page using standard CodeIgniter techniques to select the data from the relevant table, sort it, and echo to the page.
Next, I use the following SasS to turn my formatted HTML page into a PDF download:
http://www.htm2pdf.co.uk
This is a commercial system, but relatively affordable and quick and easy to use.
Alternatively, if you want to do some custom programming, you can try:
http://html2pdf.fr
In this case, you need to link to the class file (external to CodeIgniter) and call
the various methods to generate the PDF. This approach does not require an annual fee
but it will take more programming effort.
You can use codeginter's database utility for getting backup in txt format first http://ellislab.com/codeigniter/user-guide/database/utilities.html#backup
Then you can read the generated file and convert it in pdf using https://github.com/aiwmedia/HTML2PDF-CI
This pdf will you can give for download

Getting numbers from a web page, performing calculations, pasting them into excel sheet

I am working on a business application that will do financial computations based upon publicly traded companies' financial statements. Specifically, I would like to use data from pages such as this. Such as the number for the operating income in the first column.
My current plan is to parse the page as an htm file(if I can get it). however this is my first time attempting to write an application that interacts with the web, so I am uncertain if this is the best way to proceed. I am currently expecting to implement this library. to do the parsing.
Once I have all the relevant numbers, and have done the calculations, I would like to place the results into an Excel spreadsheet. This is also something I do not know how to do.
Any advice or responses detailing how to implement this plan or how to form a better one are greatly appreciated.
For financial data regarding publicly traded companies, you probably want to use a web service, rather than parsing HTML. This is one example of such a webservice (though I'm not vouching for its price or reliability - I've never used it). You could create a simple console app in Visual Studio (a VSTO solution is probably better, I just don't have much experience with it) that retrieves data via the web service, and then pastes and formats it in Excel via Excel Interop. There's many posts about Excel Interop here on SO, as well as all over the web.
What you're trying to do sounds so common that I wonder if there's an existing report suite available somewhere.

MVC compatible Grid, which will have Excel functionality

In our project we need to implement Excel-like grid for web, which will look and fell like Excel cells(not fully, but as much as it possible for web).
The most important functionality, which we need, is ability to input formulas in cells (and they could be like "=A1+C4")
Aspose.Cells looks good, but it is not compatible with MVC at all. Only with ASP.Net. And ASP.Net is not a good way to go, as large part of our system is already working and is based on MVC.
Any help\experience will be appreciated.
Thank You in advance!
You can get a long way with jQuery (jsGrid) but if you want your users to use excel why not just let them?
Excel supports Restful data
Some reading:
How can Excel 2007 / 2010 consume a REST web service?
Book list - getting book details from amazon using Excel VBA barcode lookups
http://libkod.info/officexml-CHP-9-SECT-5.shtml
http://msdn.microsoft.com/en-us/data/aa937697.aspx
http://blog.tonysneed.com/2010/04/13/wcf-data-services-versus-wcf-soap-services/
http://msdn.microsoft.com/en-us/library/bb907578.aspx
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=7609

Converting HTML Files into a PDF

I have a website that displays product information that the client wishes to offer as pdf format. I need a way to dynamically convert a particular HTML page into a PDF, does anybody know of a way to do this? I need to convert an html page into a PDF document and serve it to the end user on the fly (there are WAY too many products to do this manually and these products receive updates regularly so a manual approach is out of the question)
EDIT: I forgot to mention that I need this to use either vb.net or c#.net
Have you tried iTextSharp?

Resources