Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1065
Printing a Map
posted

Hi All,

I have an application where I am dispalying shape files. Afer displaying with data mapping I want to take a Print of the selected Area. How can we achieve this in Infragistics using XamMap Control.

 

Thanks in Advance

Pavan

Parents
No Data
Reply
  • 3255
    Verified Answer
    posted

    Hi Pavan,

    Try the following code sample:

    private void Button_Click(object sender, RoutedEventArgs e)
    {
     var printDocument = new PrintDocument();
     printDocument.PrintPage += printDocument_PrintPage;
     printDocument.Print("XamMap");
    }

    private void printDocument_PrintPage(object sender, PrintPageEventArgs e)
    {
     e.PageVisual = xamMap;           
     e.HasMorePages = false;
    }

    Regards,

    Ivan Kotev

Children