Hi,
I have been implementing printing within my application and wondered how I get all Printer Layers to scale correctly when Paper Size/Orientation is changed, i.e. A4 to A3.
I also noticed that the ScaleBarPrinterLayer goes very strange when zooming in and out of the PagePrinterLayer.
Any help on these issues would be great.
Kind Regards,
Sam
Printing - Desktop Edition
Hi Sam,
I am sorry it looks your problem is not so clearly, and I view our sample for printing, when switch A4 to A3, I haven’t found any issue here.
Could you please view our sample here: wiki.thinkgeo.com/wiki/File:ServicesEditionSample_PrintPreview_CS_WinForms_111115.zip
And let us know more detail about your issue?
Regards,
Don
Hi Don,
So basically what I want to achieve is:
1. User alters the page size/orientation
2. Elements on page (e.g. label, image etc) then reposition so they maintain their relative position to the page
Does the above clarify the issue?
I was also wondering whether there is the ability to draw shapes (e.g. annotations) onto a PagePrinterLayer when printing, any information on this would be great also.
Kind Regards,
Sam
Hi Sam,
If you have visited our sample, you can see user can alters the pager size and orientation, but the elements on page won’t be re-position, you have to write code for adjust position of the others elements(layers) or drag them manual.
If you want to add something like annotations, you need to add other layer or build your custom layer but not modify on PagePrinterLayer, PagePrinterLayer only draw the background page. If you want to add shape on map, please do change on MapPrinterLayer, more detail code please view the sample.
Regards,
Don