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

RADMAP EXPORT FUNCTIONALITY(PDF and EXCEL)

7 Answers 146 Views
Map
This is a migrated thread and some comments may be shown as answers.
vijay
Top achievements
Rank 1
vijay asked on 17 Feb 2011, 08:59 AM

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

Sort by
0
Andrey
Telerik team
answered on 18 Feb 2011, 04:29 PM
Hello vijay,

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
0
vijay
Top achievements
Rank 1
answered on 21 Feb 2011, 06:49 AM

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



0
Andrey
Telerik team
answered on 23 Feb 2011, 08:49 AM
Hi vijay,

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
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Donna
Top achievements
Rank 1
answered on 08 Jun 2011, 07:18 PM
Is there a fix for this yet? Or any kind of workaround?  I am needing to save my radmap as an image.
0
Andrey
Telerik team
answered on 10 Jun 2011, 09:44 AM
Hello Donna,

Unfortunately there is no way to create screenshot of RadMap control programmatically in Silverlight.


All the best,
Andrey Murzov
the Telerik team
0
vijay
Top achievements
Rank 1
answered on 27 Jul 2011, 06:57 AM
No dear..i also tried but not find the solution at.


Thanks
-Vijay
0
Donna
Top achievements
Rank 1
answered on 27 Jul 2011, 02:01 PM

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

Tags
Map
Asked by
vijay
Top achievements
Rank 1
Answers by
Andrey
Telerik team
vijay
Top achievements
Rank 1
Donna
Top achievements
Rank 1
Share this question
or