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

2nd request RadGrid cannot export to PDF

1 Answer 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 11 Oct 2013, 05:13 PM
Hello,
this is my 2nd request.
Please help me out on this.
I have a Radgrid and when I try to export to PDF I am getting runtime error:
Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF. Parse error: '.', hexadecimal value 0x00, is an invalid character. Line 5036, position 159. at line: 1041399P5655380794N112 08/20/2012500$209.90
Source: Telerik.Web.UI

Thanks so much.

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
Veteran
answered on 11 Oct 2013, 08:03 PM
Your request for help does not provide much in the way of details.  For example how are you exporting to PDF?  I can think of at least 3 ways you could be doing this action.  

The error message you provide suggests, and this is purely a guess, that you are encountering a localization problem.  It seems to be objecting to the period symbol in your dollar amount.

Have you tried simple debugging steps such as writing to a file rather than to the screen?  Does one method work and not the other?  Are you encountering a post-back error caused by the ajax framework?  I found I sometimes had to cancel post-backs, client side, to allow exports to occur when the grid was hosted in a update panel.  (I found the work around on this site)
Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Veteran
Share this question
or