Reputation: 1163
I have a small web application based on asp.net 2010 that manages invoices.
After the invoice is saved, it should automatically generate a pdf file.
which of the following solutions would be fast and easy to incorporate?
The point here is I dont know any of the above. Which one is easy and quick to learn and implement. Are there any other solution to achieve this functionality?
Upvotes: 2
Views: 850
Reputation: 21
I would go for XSL-FO as it is open standard and you are not being locked in a proprietary solution. You also have access to visual XSL-FO editors/designers and 3 or 4 high volume server to choose from.
As far as I know, many invoicing statements solutions today use XSL-FO becuse it is very powerful - you can footnotes or very complex pagination, 10-20 output formats, etc.
Upvotes: 1
Reputation: 5
The super simple way is use third party converter such as ABCPdf, Winnovative PDF Converter. But they cost abount $500 USD. You said you bought Crystal Report, it can use to generate pdf as well, just use Crystal Report design the pdf template, connect to your database (dataset,datatables). In your code to push data from your database and fill the pdf template finally save as pdf. But deploy Crystal Report you need merge some modules, otherwise you need install Crystal Report on your server as well.
Upvotes: 0
Reputation: 40726
For me, using Aspose.Words with the mailmerge feature was always the fastest and most flexible/comfortable solution, although not the cheapest.
Upvotes: 0
Reputation: 22424
I personally prefer iTextSharp as it is very flexible as you build the PDF from code as you need it. However as it is a port of the iText open source java library for PDF it is not 100% intuitive (well from a c# perspective)..
However said there are a lot of help blogs and articles.
I have found:-
edit
For question regarding VS2010, I used it with VS2005 a number of years ago as the basic version came shipped with VS2005. According to the website it appears to integrate into Visual Studio 2010, however this I suspect depends on what version you have.
SAP Crystal Reports can open and edit files created with SAP Crystal Reports, version for Visual Studio 2010 (and vice-versa), providing a fuller set of report design features compared to SAP Crystal Reports, version for Visual Studio 2010. SAP Crystal Reports does not include tooling to support the Visual Studio 2010 development environment but developers can use the SAP Crystal Reports, version for Visual Studio 2010 runtime engine to deploy SAP Crystal Reports RPT files with all the extended design features.
Upvotes: 0
Reputation: 10327
The first two options sound a bit heavyweight for your requirements.
You don't say if you require it to be free (open source) or if you are happy to pay for a solution; a quick search found this: ExpertPDF HtmlToPdf Converter
I have to admit that I have never used it but it might be an easy solution if you are already displaying the invoice on your web page.
Upvotes: 1
Reputation: 8278
i have done something similar with XSLFO - if you know XSLT then XSLFO is very simple to add to XSLT
Upvotes: 0