Hi,
I have few questions about print with wpf Desktop Edition.
Question 1 :
What I want to print is what the user sees on his screen. So when he zooms, the printing changes.
So this works, but I have a problem with the display of the layers in the printing with the zoomLevelset.
Layers have defaultareaStyle from a certain threshold of zoom.
Example :
The layer "Departement" is always visible no matter the level of zoom.
ZoomLevelSet zleDpt = new ZoomLevelSet();
zleDpt.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
zleDpt.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.SimpleColors.Blue, 3);
The layer "commune" (=state) has a zoomLevelSet like this :
ZoomLevelSet zleComm = new ZoomLevelSet();
zleComm.ZoomLevel14.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
zleComm.ZoomLevel14.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.SimpleColors.Orange, 2);
So when the zoom equals ZoomLevel14, so the layer is visible. I have this behavior with the control Map but when I visualize the print preview, the layer is not visible (cf PrintMap PrintCapture.PNG).
If I zoom to ZoomLevel15, so the layer is visible in the map control and in the print preview. (cf PrintCapture1.png)
So is there a trick to have the same picture with the map control as the print preview.
Question 2:
The unit of the papersize has to be always in inch and not in cm ?
printDocument.DefaultPageSettings.PaperSize = new PaperSize("AnsiA", 850, 1100);
I hope my explanation of my clear. If it's not, let me know.
Thanks for your help.
Regards.
Steph.