Hi,
I have a aspx webpage with label controls, grid data and other data. I need a option to export all the data to PDF. I tried iTextSharp but since it support only simple webpage it throws error. Could anybody provide me a solution. Thanks...
Hi,
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dipankar BiswasRank #992 · 2K reputationPosted May 5, 2015, 12:01 AM EDT
check it...
http://www.aspsnippets.com/Articles/Export-HTML-DIV-contents-to-PDF-using-iTextSharp-in-ASPNet.aspx
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 5, 2015, 12:23 AM EDT
try this code
function printChart() {
pvwindow = window.open('', 'PrintWindow', ' location = 0, status = 0, scrollbars = 1, width = 750, height = 600') pvwindow.document.write(""); pvwindow.document.write(""); pvwindow.document.write(""); pvwindow.document.write(""); pvwindow.document.write(document.getElementById("print_div").innerHTML); pvwindow.document.write(""); pvwindow.document.write(""); pvwindow.document.close(); }Manoj BhoirRank #599 · 4K reputationPosted May 5, 2015, 2:01 AM EDT
you can use jsPDF JavaScript.
Please check this link :
JsPDF : https://parall.ax/products/jspdf