Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for some examples related to the publishing of maps programmatically to image format using ArcObjects. More specifically I would like to add standard map elements such as a scale bar, legend, and north arrow.

Currently I am able to create an MXD, add several layers from paths stored in a dictionary, set the symbology based on layer files, set the extent, and export the map as a JPEG. Up to this point I haven't found any examples of ArcObjects code that also makes the map look more professional by adding additional elements (and sizing/positioning them).

Any help would be much appreciated.

share|improve this question
up vote 5 down vote accepted

See the Working with the page layout section in the documentation - mainly the Map surrounds topic, which provides an overview how the most common map surrounds (legend, scalebar etc.) are structured, followed by Working with map surrounds, which shows how to add these elements to the page layout.

share|improve this answer
This is perfect - I've never heard the term 'map surrounds' used before in the context of ArcMap. – Radar May 15 '13 at 21:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.