Hi Team,
I am using silverlight RadMap Control and it's working as expected after binding the dataset as datasource to map.
Now my new requirement is i have to export RADMAP into EXCEL and PDF.
Here i have developed the export functionality for radchart and it is working with out any issues
For radchart i have found ExporttoImage property and it is working fine as below.
MemoryStream stream = new MemoryStream();
RadChart1.ExportToImage(stream);
The same way i have to do the RADMAP also.But i did not find any property or methods for achiving above functionality.
Can you please suggest me if it is already available in the existing release and also please do the need full to develop this functionality alternatively.
I need this as soon as possible please help me.I hope will get the replay soon.
Thanks in Advance
Vijay Kommalapati
7 Answers, 1 is accepted
The export to an image in Silverlight is performed using the WriteableBitmap class. We use the MS MultiScaleImage as a base of RadMap control. It does not allow creating the WriteableBitmap with access to its pixels.
At present, it is not possible to get a screenshot of RadMap to an image.
Regards,
Andrey Murzov
the Telerik team
Andrey Murzov,
Thanks for your quick reply.
Please suggest any alternative approach to export the map into pdf format.
Is it possible to implement this functionality in the future release. Please confirm becuase this is required for us current release.
I need this as soon as possible please help me.I hope will get the replay soon.
Thanks in advance
Vijay Kommalapati
Unfortunately, it is impossible, because the map contains images from a site of the map provider (like to Bing or Open Street). The domain name resolver (that's used by WriteableBitmap) requires that the website domain and the MediaElement to be the same to allow pixel access.
So, there is no way to create screenshot of RadMap control programmatically in Silverlight.
All the best,
Andrey Murzov
the Telerik team
Thanks
-Vijay
I've learned that if you are using an empty provider, it is possible to save the map as an image using the ExportExtensions.ExportToImage method.
Here's the link to help:
http://www.telerik.com/community/forums/silverlight/map/saving-radmap-as-an-image.aspx