Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I embedded ArcEngine 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 ArcEngine application?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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.

share|improve this answer
    
I can't find a scalebar control in the ArcEngine documentation, any idea how it is called internally? –  Sam Aug 22 '11 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 '11 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 '11 at 10:23
add comment

Your Answer

 
discard

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.