RADMAP EXPORT FUNCTIONALITY(PDF and EXCEL)

8 posts, 0 answers
  1. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 17 Feb 2011 Link to this post

    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

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 18 Feb 2011 Link to this post

    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
  3. DevCraft banner
  4. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 21 Feb 2011 Link to this post


    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



  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 23 Feb 2011 Link to this post

    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!
  6. Donna
    Donna avatar
    12 posts
    Member since:
    Dec 2010

    Posted 08 Jun 2011 Link to this post

    Is there a fix for this yet? Or any kind of workaround?  I am needing to save my radmap as an image.
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Jun 2011 Link to this post

    Hello Donna,

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


    All the best,
    Andrey Murzov
    the Telerik team
  8. vijay
    vijay avatar
    46 posts
    Member since:
    Jul 2010

    Posted 27 Jul 2011 Link to this post

    No dear..i also tried but not find the solution at.


    Thanks
    -Vijay
  9. Donna
    Donna avatar
    12 posts
    Member since:
    Dec 2010

    Posted 27 Jul 2011 Link to this post

    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

Back to Top
DevCraft banner