15,909,897 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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#
.