Click here to Skip to main content
15,909,897 members

Comments by Whiressawd (Top 2 by date)

Whiressawd 21-Aug-15 5:23am View    
This type of a requirement is typically used for a one way conversion, but to my understanding you for some reason would need a two way communication.
What I mean by this is that after saving a report as a pdf you'll want to additionally process it in the future. Is this right, did I understood you correctly?

If I'm correct then I would instead go with saving the form's data into a database and regarding the 100 fields well you can iterate through the "Request.Form" data so it should not be complicated to handle that.

In case I misunderstood you then you can refer to this article about converting a html into a pdf in .net. The article's code uses this word processing library for .net.
Whiressawd 21-Aug-15 5:01am View    
Unfortunately there is no build in solution to this, you can use some HTML parser like HtmlAgilityPack, Majestic12 or AngleSharp (I haven't tested this one jet but it does seem efficient) together with some library for creating PDF files in C# (for example iTextSharp, PdfSharp, etc.). This would require that you iterate through the HTML content and draw the corresponding graphics on PDF document.
Or alternatively you can find some straightforward solution for HTML to PDF conversion done in C#.