Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
I want to generate a pdf file from html file. I have created a function (HTML_To_PDF(DataTable dtSearchResult, StringBuilder sb)) and in this function we generate GridView data in Html form and i want to generate a pdf file using this function......
Posted
Updated 29-Dec-11 23:06pm
v2

1 solution

The simplest solution is one of the PDF 'print drivers'. Generate your HTML, load it into an offscreen browser control, and then print it to the PDF 'device'. There are a number of them available, some of them freeware.
 
Share this answer
 
Comments
RaviRanjanKr 30-Dec-11 18:46pm    
5+

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