I'm trying to find out how to open Viewer window (menu Windows->Viewer in ArcMap) programmatically and zoom it to a specific location. This is how I can open it:
IDataWindowFactory dwf = new MapViewerWindowFactoryClass();IDataWindow dw = dwf.Create(mArcMap); // typeof mArcMap is IApplicationand to show it:
dw.Show(true);but I can't find a way to set the initial extent when opening the viewer window or at least how to change it after it is loaded.
أكثر...
IDataWindowFactory dwf = new MapViewerWindowFactoryClass();IDataWindow dw = dwf.Create(mArcMap); // typeof mArcMap is IApplicationand to show it:
dw.Show(true);but I can't find a way to set the initial extent when opening the viewer window or at least how to change it after it is loaded.

أكثر...