laptop and a wrench

漏洞

ControlsSaveAsDocCommand saves the map document with PageLayout as the active view, even though the MapBean is set as a buddy control to the ToolbarBean in an Engine application.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM013078
已提交November 15, 2007
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.2
编程语言Java
状态Will Not Be Addressed

附加信息

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

解决办法

One workaround is to use MapDocument class directly to save a new MXD instead of using ControlsSaveAsDocCommand. We can create a separate swing button and execute the following code for saving a new MXD from the map in the MapBean.com.esri.arcgis.carto.MapDocument mapDoc = new com.esri.arcgis.carto.MapDocument();mapDoc.esri_new("C:/temp/test.mxd");mapDoc.replaceContents(mapBean.getAsIMxdContents());mapDoc.setActiveView((IActiveView)mapBean.getMap());mapDoc.save(true,true);

重现步骤

漏洞 ID: NIM013078

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项