How to print a part of the webform?
I need to print a part of webform, when the user clicks on a print button. How to do that? Should i use reports? or directly from the webform itself it can be printed?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Jun 23, 2011, 1:57 AM
protected void btnprint_Click(object sender, EventArgs e)
{
btnprint.Visible = false;
Session["ctrl"] = Panel1;
ClientScript.RegisterStartupScript(this.GetType(), "onclick", "");
Control ctrl = (Control)Session["ctrl"];
PrintHelper.PrintWebControl(ctrl);
}