Silverlight Page to PDF

Apr 28, 2010 at 5: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??

Chuck

Coordinator
Jul 10, 2010 at 3: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 http://www.wintellect.com/CS/blogs/jprosise/archive/2009/03/25/more-on-silverlight-3-s-new-writeable-bitmap.aspx.
 
2) Then convert WritableBitmap to FileSteam, using this library http://imagetools.codeplex.com/
 
3) And at last just load this image to your PDF using XImage.LoadFromSteam method
Jul 17, 2010 at 2: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?