Last post Dec 11, 2014 08:01 AM by Mikesdotnetting
Dec 08, 2014 12:30 AM|hkbeer|LINK
I used iTextsharp to output whole page as pdf and is successful.
However, only Gridview is there in the pdf and not the google chart.
Any recommendation as to what I can do ? Thanks
Dec 10, 2014 08:59 AM|Mikesdotnetting|LINK
built-in .NET charts render as images, so they can be included in a PDF easily.
Dec 11, 2014 07:44 AM|hkbeer|LINK
Thanks a lot indeed.
I am using this to output to pdf. I found it cannot output the MsChart on that page.
It is linked to a sqldatabase. Now it output a blank pdf. Any rescue ? If I point it to print another aspx page with simple text there is no problem.
Seems Ms Chart cannot be stored into str to be parsed ? Or is it due to the fact that it has to run the database first ?
strHtml = strWriter.ToString()
Dec 11, 2014 08:01 AM|Mikesdotnetting|LINK
In your shoes, I wouldn't try to convert the HTML to a PDF. I would just generate a PDF using the standard iTextSharp objects like PdfPTable and your chart image.