【发布时间】:2009-06-17 07:49:28
【问题描述】:
在 ASP.NET 中打印 webcontol 时,如何隐藏诸如“第 1 页,共 1 页”和页脚 (url) 之类的页眉?
我目前通过在打印按钮上打开一个新页面单击并在其中进行操作
protected void Page_Load(object sender, EventArgs e)
{
if( null != Session["Control"] )
{
Control ctrl = ( Control )Session["Control"];
PrintManager.PrintWebControl( ctrl );
Session["Control"] = null;
}
}
这将打印页眉和页脚。如何避免?
【问题讨论】:
标签: asp.net printing web-controls printing-web-page