How can I hide the header like 'Page 1 of 1' and footer (url) when printing a webcontol in ASP.NET?
I currently doing by opening a new page on Print button click ande in it
protected void Page_Load(object sender, EventArgs e)
{
if( null != Session["Control"] )
{
Control ctrl = ( Control )Session["Control"];
PrintManager.PrintWebControl( ctrl );
Session["Control"] = null;
}
}
This will print the header and footer. How to avoid it?