I want to add a custom header to each page of my pdf export.
My grid code has the following declaration.
1 - I have a left margin of 20px but my header does not align with the rest of the export. How can I add a padding to it.
2 - I also want to add a horizontal rule to each page just above the header. If I add it to the string below it just shows in the left cell and it also breaks my header into two separate pages.
string ExportTitle = "<
b
>ClientName</
b
><
br
/> " + " ReportName";
grid.ExportSettings.Pdf.PageHeader.LeftCell.Text = ExportTitle;
grid.ExportSettings.Pdf.PageHeader.LeftCell.TextAlign = GridPdfPageHeaderFooterCell.CellTextAlign.Left; grid.ExportSettings.Pdf.PageLeftMargin = Unit.Pixel(20);
grid.ExportSettings.Pdf.PageRightMargin = Unit.Pixel(20);