许可优化
许可优化
产品
产品
解决方案
解决方案
服务支持
服务支持
关于
关于
软件库
当前位置:服务支持 >  软件文章 >  AE+C#开发之输出地图:输出当前视图中的地图

AE+C#开发之输出地图:输出当前视图中的地图

阅读数 10
点赞 0
article_banner

一、创建菜单

在主 窗体 添加导出地图菜单

二、创建base Comand 命令

代码 如下:

using System;using System.Drawing;using System.Runtime.InteropServices;using ESRI.ArcGIS.ADF.BaseClasses;using ESRI.ArcGIS.ADF.CATIDs;using ESRI.ArcGIS.Controls; namespace Farm{    /// <summary>    /// Command that works in ArcMap/Map/PageLayout    /// </summary>    [Guid("f3437c39-362b-438f-b703-e987ebf78814")]    [ClassInterface(ClassInterfaceType.None)]    [ProgId("FarmManager.统计分析.ExportMapCmd")]    public sealed class ExportMapCmd : BaseCommand    {        #region COM Registration Function(s)        [ComRegisterFunction()]        [ComVisible(false)]        static void RegisterFunction(Type registerType)        {            // Required for ArcGIS Component Category Registrar support            ArcGISCategoryRegistration(registerType);             //            // TODO: Add any COM registration code here            //        }         [ComUnregisterFunction()]        [ComVisible(false)]        static void UnregisterFunction(Type registerType)        {            // Required for ArcGIS Component Category Registrar support            ArcGISCategoryUnregistration(registerType);             //            // TODO: Add any COM unregistration code here            //        }         #region ArcGIS Component Category Registrar generated code        /// <summary>        /// Required method for ArcGIS Component Category registration -        /// Do not modify the contents of this method with the code editor.        /// </summary>        private static void ArcGISCategoryRegistration(Type registerType)        {            string regKey = string.Format("HKEY_CLASSES_ROOT\\CLSID\\{  {  {0}}}", registerType.GUID);            MxCommands.Register(regKey);            ControlsCommands.Register(regKey);        }        /// <summary>        /// Required method for ArcGIS Component Category unregistration -        /// Do not modify the contents of this method with the code editor.        /// </summary>        private static void ArcGISCategoryUnregistration(Type registerType)
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删


相关文章
技术文档
QR Code
微信扫一扫,欢迎咨询~
customer

online

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 board-phone 155-2731-8020
close1
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

姓名不为空

姓名不为空
手机不正确

手机不正确

手机不正确
公司不为空

公司不为空

公司不为空