Does anyone know if the following is possible, and if so, what is the best way to do this for free?
I create a PrintDocument in the project I am working on and show a print dialog so that the user can choose which printer they want to use, etc. This is currently an application for Windows forms, and if the user wants to print PDF they can choose to print on CutePDF or something like that.
However, now I am adding the ASP.Net web interface to the application and want to use the same code to create the PrintDocument, but you want to print it to PDF on the fly and submit it via the Response stream in PDF download format.
So my question is ... How can I use the current PrintDocument and generate a PDF file from memory?
thanks
Markb29
source share