如何以pdf格式导出面板内容 [英] how to export panel content in pdf

查看:95
本文介绍了如何以pdf格式导出面板内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii all,



i希望使用itextsharp.dll以pdf格式导出面板数据..



我的面板有一些标签,gridview启用分页,当我只导出gridview然后它正常工作..但我想导出整个面板内容..



请帮助我要



提前感谢..

解决方案

希望这有帮助





< title>



函数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();

返回假;

}











嗨这是测试。更改打印选项以另存为PDF ..(不在Internet Explorer中工作)



< asp:button runat =serverid =btnClickonclientclick = return generatePDF(); text =Clickxmlns:asp =#unknown>







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..

解决方案

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">





这篇关于如何以pdf格式导出面板内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆