views:

286

answers:

2

I'd like to print receipts from my asp.net mvc app. For now I think my best option is to create PDF files, which are easier to handle when they are going to print them, because of the margins/headers/footers/etc.

I don't want to have them configure their browsers just so they can print my receipts, some of them are just not that smart.

Any other options?

What is the best (free)library/api to generate PDFs from an asp.net mvc app

+2  A: 

I've had good success creating bar code labels in PDF format using Report.net as well as iTextSharp. For iTextSharp in particular, the API seemed easy enough and it worked well in our ASP.NET MVC application. Not a lot of documentation for iTextSharp so you have to look up the java documentation for iText (which it's a port of).

Bonus: They're both free!

Andrew Flanagan
A: 

I would use iTextSharp if you are looking to generate PDFs to print from, but as far as other options go, why not just use css to style a printer friendly option of the page?

MikeB
hminaya