Select to view content in your preferred language

how do I zoom by scale?

674
1
07-19-2010 06:03 AM
jonataspovoas
Regular Contributor
Hi,

My Application has two pages: The main navigation page and a print childWindow.
During execution time, if the user clicks on the print button, the print childwindow pops up showing the map inserted in a Print Layout.

The problem is that each page has diferent dimensions, and when i pass the map from one another, i make a zoom passing the envelope from the other. With this, the scale of the map changes.

Is there anyway to Zoom using the scale instead of the envelope?

here's how I Zoom the map:

printer.printMap.ZoomTo(this._extentHistory[this._currentExtentIndex]);

_extentHistory is a List of Envelopes that records the map interactions.
_currentExtentIndex a int that records the actual position in the history of interactions.
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
You would have to adjust the extent accordingly to expand/clip it based on the new print size.
0 Kudos