laptop and a wrench

Error

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.

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM013078
EnviadoNovember 15, 2007
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.2
Lenguaje del programaJava
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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

Pasos para reproducir

ID del error: NIM013078

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga