ESRI silverlight打印地图,无需使用打印任务 [英] ESRI silverlight print map without using print task

查看:49
本文介绍了ESRI silverlight打印地图,无需使用打印任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Silverlight应用程序,该应用程序具有不同的面板,其中一个面板包含ESRI地图,我想打印地图面板上即将显示的内容,它更像是地图的打印屏幕(但不应包含其余的内容)客户端应用程序的控件).

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).

在调查中,我发现我们可以使用PrintTask,但是它使用GP服务器.我不想调用ESRI服务进行打印.

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)

Atul Sureka

推荐答案

如果使用的是最新版本的Esri Silverlight API,则可以访问客户端打印.在这里查看他们的示例: https://developers.arcgis.com/silverlight/sample-code/start.htm#ClientPrinting

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

这很不错,因为它为您提供了适当的所见即所得的打印界面,可以清晰地看到其范围,并且可以比打印服务更好地处理自定义标记.不利的一面是,除非您的源贴图具有足够高的分辨率,否则除非获得了用户触发打印界面时执行某种类型的贴图切换的效果,否则最终将获得分辨率很低的贴图.您还需要在xaml中而不是在ArcMap中定义打印模板.

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.

这篇关于ESRI silverlight打印地图,无需使用打印任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆