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

Avoiding errors when exporting data

1 Answer 9 Views
This is a migrated thread and some comments may be shown as answers.
-DJ-
Top achievements
Rank 1
-DJ- asked on 27 Feb 2012, 04:18 PM

Hi guys.

I sometimes get "invalid xhtml" errors when exporting from radgrid.
This is actually not my problem per se.

I am allowing users to export tables from databases, and some of them do contain old and invalid markup. Verifying/editing the markup isn't really an option.

My problem is, that even after including all code execution within "Try" I'm still unable to catch the errors and letting users know what's wrong. For some reason I still always get the unfriendly (for regular users) .net error page.

There must be a way to catch the errors right?

Regards,
-DJ-

1 Answer, 1 is accepted

Sort by
0
-DJ-
Top achievements
Rank 1
answered on 27 Feb 2012, 06:29 PM
My solution is to loop through all cells and remove any and all markup.

It would be nice to be able to do:

Try
radGrid1.MasterTableView.ExportToPdf()
Catch
' do something
end try

But in any case I'm not getting errors now.

Regards,
-DJ-
Tags
Grid
Asked by
-DJ-
Top achievements
Rank 1
Answers by
-DJ-
Top achievements
Rank 1
Share this question
or