Silverlight Page to PDF

Apr 28, 2010 at 6:09 PM

I've got a silverlight page with a Bing Map imbedded.  I need to convert the map to a pdf to include it in a report.

Any way to grab the map and include it in the PDF??


Jul 10, 2010 at 4:20 PM
This is pretty simple.
1) First of all make a snapshot of you Bing Map control, using WhritableBitmap. How to do it look here
2) Then convert WritableBitmap to FileSteam, using this library
3) And at last just load this image to your PDF using XImage.LoadFromSteam method
Jul 17, 2010 at 3:33 AM

I tried converting the bing map control to a WriteableBitmap, however I'm getting the following error: "WriteableBitmap has protected content. Pixel access is not allowed." Is this not possible?