ESRI silverlight print map without using print task

坚强是说给别人听的谎言 提交于 2019-12-08 10:08:41

问题


I have a silverlight application which different panels, One of the panel contains the ESRI map, I want to print what is coming on the map panel, It's more like a print screen for map (but it should not include rest of the controls of the client application).

On investigation I found that we can use PrintTask but it uses GP server. I do not want to invoke the ESRI service for print.

Is there any other way to print what is coming on the screen (inside the map panel) in the silver light?

Atul Sureka


回答1:


If you are using the latest version of the Esri Silverlight API, you have access to client side printing. See their example here: https://developers.arcgis.com/silverlight/sample-code/start.htm#ClientPrinting

It is nice in that it gives you a proper WYSIWYG interface for printing, visibly seeing the extent and can handle custom markers way better than the print service. The downside is though that unless your source map is high enough resolution you'll end up with quite low-res maps unless you perform some kind of map switching when a user triggers the print interface. You'll also need to define print templates in xaml rather than in ArcMap.

It basically boils down to cloning your map and copying all the layers across.



来源:https://stackoverflow.com/questions/27902162/esri-silverlight-print-map-without-using-print-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!