laptop and a wrench

Bug

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.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM013078
SubmittedNovember 15, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageJava
StatusWill Not Be Addressed

Additional Information

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.

Workaround

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

Steps to Reproduce

Bug ID: NIM013078

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options