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 ?