Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hii all,

i want to export panel data in pdf using itextsharp.dll..

my panels has some labels,gridview with paging enabled, when i export only gridview then it's working properly.. but i want export whole panel content..

please help me

thanks in advance..
Posted
Comments
Sunasara Imdadhusen 21-May-14 4:16am    
Have you started writing code for that?

1 solution

Hope this helps


<title>

function generatePDF() {
pvwindow = window.open('', 'PrintWindow', ' location = 0, status = 0, scrollbars = 1, width = 750, height = 600')
pvwindow.document.write("<html>");
pvwindow.document.write("<head>");
pvwindow.document.write("</head>");
pvwindow.document.write("<body style="background-color:white;" onload="window.print();">");
pvwindow.document.write(document.getElementById("dvmain").innerHTML);
pvwindow.document.write("</body>");
pvwindow.document.write("</html>");
pvwindow.document.close();
return false;
}





hi this is test. change print option to save as PDF..(Not Working in Internet Explorer)

<asp:button runat="server" id="btnClick" onclientclick="return generatePDF();" text="Click" xmlns:asp="#unknown">



 
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