I'm currently using the RadGrid's "Export to PDF" functionality to generate a report that is printed and signed by the different department heads in our organization. I'd like to add a header to the first page of the printed report that has the company logo and spaces for the department heads to sign.
I've tried following the suggestion in this thread:
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-rad-grid-to-excel-pdf-and-ms-word-with-headers.aspx
Using the test code provided works fine, but when I attempt to add a table to e.RawHTML my additions are not rendered.
I use the following PDFExporting method:
The outputted pdf has the contents of the radgrid, but the table with the word "test" in it, which should appear at the top of the document, is not there.
I imagine the problem has to do with the PDF export requiring valid XHTML, but from what I can see my markup should be valid. Can someone let me know what I'm missing here?
I've tried following the suggestion in this thread:
http://www.telerik.com/community/forums/aspnet-ajax/grid/export-rad-grid-to-excel-pdf-and-ms-word-with-headers.aspx
Using the test code provided works fine, but when I attempt to add a table to e.RawHTML my additions are not rendered.
I use the following PDFExporting method:
protected
void
rgReport_PDFExporting(
object
sender, GridPdfExportingArgs e)
{
e.RawHTML =
"<table><tr><td>Test</td></tr></table>"
+ e.RawHTML;
}
The outputted pdf has the contents of the radgrid, but the table with the word "test" in it, which should appear at the top of the document, is not there.
I imagine the problem has to do with the PDF export requiring valid XHTML, but from what I can see my markup should be valid. Can someone let me know what I'm missing here?