Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Im working in a project which requires current html page to convert in pdf and that pdf will automatically save on button click on server and its reference will be save in database.I can convert the view if its data comes from data base but the data in this form is static that means on the view it has so many radio button and text box in which i can write the detail and check the check box on after clicking save button it will save on the server and and its reference will save in the data base.

the reason is that im not saving the data in database is that the report is less use full for the client but if i save the data in data base then the database become very huge and its become complicate to handle. because the report has approx 100 fields.
so please if any one can help me in it.
Posted
Updated 16-Nov-16 4:08am
Comments
Whiressawd 21-Aug-15 5:23am    
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.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900