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.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM013078
EingereichtNovember 15, 2007
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
ProgrammspracheJava
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: NIM013078

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln