This is a migrated thread and some comments may be shown as answers.

Export to PDF with a Header Table

1 Answer 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 16 Jun 2011, 09:14 PM
I'm attempting to export a radgrid to pdf with an HTML table header at the beginning of the pdf.  I have the header & the grid exporting, but the HTML table header only renders on 1 line, ignoring table rows.  I need help getting the header to render as a formated table.

"<table width=""100px""><colgroup><col /></colgroup><tr><td>row 1</td></tr><tr><td>row 2</td></tr></table>"

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Jun 2011, 08:20 AM
Hello DudeMan,

There are a few rules that should be followed when exporting HTML tables to PDF:

  • The table should define <colgroup> and <col> elements
  • The number of col elements should be equal to the number of the columns in the table body
  • Width in pixels (or another absolute units) should be set to the table
Check out the following help article for more on this.
PDF export.

Thanks,
Princy.
Tags
Grid
Asked by
Rob
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or