1

I embedded ArcGIS Engine into a c#/wpf application and use it to display a map. Now for print my client needs to display the scale of the map like it is used on street maps (the small bar which shows how long 500m are, and/or the scale information like 1:25000).

Prints are always on a set paper size like A4.

Is there a simple way to achieve this in an ArcGIS Engine application?

1 Answer 1

2

We made the layout in ArcMap and added a scalebar. In ArcGIS Engine we use the pagelayout to display a print preview and sent it to the printer. Not sure how this works in WPF but in winforms we used the sample for synchronize map and pagelayout to get started, but customized so we could open different layouts.

4
  • I can't find a scalebar control in the ArcEngine documentation, any idea how it is called internally?
    – Sam
    Aug 22, 2011 at 14:19
  • Yes, the AlternatingScaleBar is exactly what I am looking for - pity there is no clue how to add one to a AxMapControl (mostly I find the esri docs very confusing).
    – Sam
    Aug 23, 2011 at 10:16
  • Oh, there actually is sample code "Add Map Surrounds" for the ScaleBar - which is one of the most convoluted and confusing examples I've ever seen. #Sigh
    – Sam
    Aug 23, 2011 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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