ThinkGeo.com    |     Documentation    |     Premium Support

Printing Objects not working from converting from 9.0 to 10.0

Hi ThinkGeo,

Over the coarse of the last few months we have updated our project to the most recent version of 10.2. When we went to test our Printing form we noticed that a lot of the functionality of panning, zooming, orientation, and size of the printing map were not adjusting the map. All these functionalities worked before in 9.0. For one example we use the MapPrinterLayer contained within an LayerOverlay that is added to the map. When we select one of our buttons to zoom in the code looks like “mapPrinterLayer.MapExtent = ExtentHelper.ZoomIn(mapPrinterLayer.MapExtent, mintZoomPan);”. In stepping through the code the MapExtent is correctly changed but the map does not zoom in and therefore does not update. We currently have our map and buttons within an UpdatePanel. Any suggestions? We have the most stable version of the ThinkGeo.MapSuite.Layers.Printer.dll installed (10.2.1) do we need the most recent prerelease (11.0.0-beta008)?

Thank you,
Neil

Hi Neil,

Thanks to let us know your problem, but it looks our sample works for the printing function.

Here is a webapi sample, which is also works in browser, could you please have a looks at it and see whether it works for you? https://github.com/ThinkGeo/PrintingSample-ForWebApi

If it don’t works, could you please build a simple sample so we can reproduce it? You can quickly create a V10 sample follow this guide: http://wiki.thinkgeo.com/wiki/map_suite_project_template_guide

Regards,

Ethan

Hi Ethan,

I will look into this but does it matter if we are using Web Edition not Web API? I would assume the code would be different in that regard. Most of our issues are server side not adjusting the client side.

Thank you,

Neil

Hi Neil,

You can just refer the sample code, in fact the print related code should be in standalone packages but not have WebAPI edition or Web edition, it works just like our original core, it’s public for all products.

Please let us know whether that’s helpful for you after you test that.

Regards,

Ethan