Hi Thomas/PDF sharp Team, Can you please help me to display header on every PDF page using convert html string input to pdf. 1) I used <Thead></Thead>,<Th></Th> while generate the pdf , the header is coming only first page and i need every page of generated PDF . 2)In CSS: page break i used but not working.
sample Html example: string html=@"<table> <tr><td class='TitleTdLine' colspan='7' bgcolor='#D3D3D3'>Feeder Arc Energy:</td></tr> <thead> <tr><th>Feeder</th><th>Available</th><th>PPE</th><th>Ise</th><th>Available</th><th>PPE</th> <th>Comments</th></tr> </thead> <tbody> <tr><td class='TitleTdLine' colspan='7' bgcolor='#D3D3D3'>Substation: </td></tr> </tbody></table>";
C#: using PdfSharp.Pdf;
html += "</body></html>";
PdfDocument pdf = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.Letter); pdf.Save(stream);
return stream;
If you have any suggestion .Please help!
Thanks, Prabagaran
|