Hi,
I have a problem with printPreview .
In my form i add a PageLayer , MapLayer , LegendLayer . for legendLayer i set BackgroundMask with gray color (For test it drag legendPrinterLayer to my loaded shape in printerLayer) . In mainView it is correct but when i get preview from that , legendPrinterLayer goes behind of printerLayer .
I attach a sample that shows this problem .
mainView :
printPreview :
Can any one help me ?
thanks .
PrintTest.zip (1.71 MB)
PrintPreview problem
Hi Maryam,
I checked the codes and please try to wrap the Flush method in the foreach should be fine:
foreach (PrinterLayer printerLayer in printerInteractiveOverlay.PrinterLayers)
{
printerLayer.IsDrawing = true;
if (!(printerLayer is PagePrinterLayer))
printerLayer.Draw(printerGeoCanvas, labelsInAllLayers);
printerLayer.IsDrawing = false;
printerGeoCanvas.Flush();
}
Hope it helps.
Regards,
Troy
Hi,
Your answer works fine . I appreciate your help .
Regards
Hi Maryam,
You are welcome.
If any other questions, don’t hesitate to let us know.
Regards,
Troy