c# - I Text Sharp how to repeat header and footer -
How to Repeat Report Headers and Footers by Using ItExtsharp by Using PageEvent? I have found that if we add, the report header does not repeat
pdfWriter.PageEvent = new MarginalHelper (); Public Class MarginalHelper: PDF PageEventHelper {Public Override Zero Onstart Page (PDFDriver PDFDriver, Document Document) {New Header Information (PDFDriver); } Public override zero onpagepage (PDFDriver PDFDriver, Document Doctor) {Report Footer (PDF Writer Direct Content); }} Header Wont appears in the first page. Does anyone know a solution for this? I do not want to use a table for the header.
As a document, you ever to the content in OnStartPage Should be added () method, only in OnEndPage () method In other words: new header information (pdfWriter); Move OnEndPage () to . Also, make sure you declare the PageEvent first by opening the document.
Comments
Post a Comment