Welcome Guest Search | Active Topics | Sign In | Register

Setting header and footer position fixed Options
Chidananda
Posted: Friday, September 20, 2013 5:07:45 AM
Rank: Newbie
Groups: Member

Joined: 9/20/2013
Posts: 3
I am using EO pdf to generate some report
I am creating header and footer inside On_AfterRenderPage method. Here is the code.

Code: C#
private void On_AfterRenderPage(object sender, EO.Pdf.PdfPageEventArgs e)
        {
            EO.Pdf.HtmlToPdf.Options.HeaderHtmlFormat = HeaderHtml;
            EO.Pdf.HtmlToPdf.Options.HeaderHtmlPosition = 0f;
            EO.Pdf.HtmlToPdf.Options.FooterHtmlFormat = FooterHtml;

            EO.Pdf.HtmlToPdf.ConvertHtml("", e.Page);
}


But in report sometimes the header is overlapping the body and footer goes off the screen.
So can I fix the position of header footer and body, so that each can be placed in their place ?
eo_support
Posted: Friday, September 20, 2013 9:21:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Try to call ConvertHtml with your header/footer HTML, but use HtmlToPdf.Options.OutputArea to precisely set the output area of your header/footer.

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.