Print aspx page with Gridview nad asp.net chart as PDF
Dear sir, I have one project in that project i have one dashboard.In dashboard i'm printing some data with "gridview and the ASP.net chart" in PDF. But when i print dashboard as PDF it Doesn't show me the asp.net chart it gives me the error for that chart. So, can you provide the code to print my dashboard data with chart.
Midhun TpPosted Sep 24, 2016, 10:03 AM
Try editing your web.config (in the appsettings section) adding the value deleteAfterServicing=false to the "ChartImageHandler" key
< add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;deleteAfterServicing=false;" / >
Please follow below links-
http://stackoverflow.com/questions/4256606/chart-area-not-showing-in-print-preview
http://www.aspsnippets.com/Articles/Export-ASPNet-Chart-Control-to-PDF-Document-using-iTextSharp-Library.aspx