DataGrid - export to PDF - error

2 Answers 47 Views
GridView
Radek
Top achievements
Rank 1
Iron
Iron
Radek asked on 29 Dec 2022, 12:00 PM

Hi,

when I want to export datagrid to pdf I get error:

Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF. Parse error: char (hexadecimal value 0x1F) is an invalid character.: row 34411, position 13 at line: <td>60045685_0002</td>

Problem is in value 60045685_0002 - export without this value is correct.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Dec 2022, 12:10 PM

Hi, Radek,

In order to export RadGridView I would highly recommend you to use the GridViewPdfExport object which utilizes the powerful RadPdfProcessing library and exports RadGridView`s data natively to the PDF format. The following help article demonstrates a sample approach how to use it:

https://docs.telerik.com/devtools/winforms/controls/gridview/exporting-data/export-to-pdf#exporting-data-using-gridviewpdfexport-object 

Please give it a try and see how it works on your end.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Radek
Top achievements
Rank 1
Iron
Iron
answered on 29 Dec 2022, 03:22 PM

Hi,

thank you, GridViewPdfExport works well.

Radek

 

Tags
GridView
Asked by
Radek
Top achievements
Rank 1
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Radek
Top achievements
Rank 1
Iron
Iron
Share this question
or