R – How to export a Silverlight 2.0 DataGrid to html

silverlight-2.0

I need to export a SL DataGrid to HTML so my users can then print it. Can someone put me in the right direction?

Upate: After reading Rob's answer I am changing my question. Instead of Silverlight Grid to HTML, I now just want to export it to PDF. Has anyone used any 3rd party PDF generators with Silverlight?

Best Answer

HTML is a bad choice for printing for several reasons which are well documented on this site so I won't get into them.

I would suggest that you export to PDF rather than attempt to go with the HTML route. For Exporting to PDF there are a number of good .Net tools available. Other options include exporting your grid to a spreadsheet program like Excel, Spreadsheet Gear, or OpenOffice Calc which will offer additional functionality.