Rank: Newbie Groups: Member
Joined: 11/27/2012 Posts: 5
|
I want to give page number to my pdf page genrated by below code .I am using ASPXToPDF1 to genrate pdf for perticular section over page.Kindly help me
protected void Button1_Click(object sender, EventArgs e) { string filename = string.Empty; EO.Pdf.HtmlToPdf.Options.VisibleElementIds = "printarea"; EO.Pdf.HtmlToPdf.Options.PageSize = new SizeF(11f, 8.5f); if (Request.QueryString["rpt"].ToLower() == "wis") { filename = "WeeklyIssueReport_" + rptDate.ToString("dd_MMM_yyyy") + ".pdf"; } else if (Request.QueryString["rpt"].ToLower() == "mdr") { filename = "MonthlyDeveloperReport_" + rptDate.ToString("MMM_yyyy") + ".pdf"; } else if (Request.QueryString["rpt"].ToLower() == "psr") { filename = "ProjectStatusReport_" + DateTime.Now.ToString("dd_MMM_yyyy") + ".pdf"; } ASPXToPDF1.RenderAsPDF(filename); }
Thanks Rupali Parate
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, Please see here for more information about page header and footer: http://www.essentialobjects.com/doc/4/htmltopdf/header.aspxInternally ASPXToPDF uses HTML to PDF. So you can use all HTML to PDF features. Thanks!
|