Welcome Guest Search | Active Topics | Sign In | Register

Not able to show page number in pdf Options
Rupali
Posted: Thursday, February 28, 2013 5:03:17 AM
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
eo_support
Posted: Thursday, February 28, 2013 4:41:58 PM
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.aspx

Internally ASPXToPDF uses HTML to PDF. So you can use all HTML to PDF features.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.