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
Hello Egmont,
Thank you for your post. I have been looking into it and I can say that beside the assemblies you need for the XamMap:
-InfragisticsWPF4.Controls.Maps.XamMap.v12.2
-InfragisticsWPF4.DataVisualization.v12.2
-InfragisticsWPF4.v12.2
you will also need to add the MS's System.Drawing.dll, where the PrintDocument class is defined.
Hope this helps you.
Which dlls do I need to reference to use this? And/or which using statements in my code behind?
Thanks
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