Select to view content in your preferred language

Map Printing Issue with my map services

2791
7
10-18-2011 03:35 AM
MuhammadWaqar_ul_islam
Occasional Contributor
i have used sample for map printing mention by dbroux
http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3
it works fine
but i have little problem with scale and pages in MapPrint dialog using my services 
its shows a single page to print and when i click on print button its doesnot show scale its Shows NAN Kilometer
while using this service http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer
pages and scale works fine
i m attaching both files for reference
0 Kudos
7 Replies
by Anonymous User
Not applicable
Original User: dbroux

It's likely because the program can't find out the map units by itself.

Setting manually the 'MapUnits' property of the MapPrinter should help.

Sidenote : from 2.3 the API will provide a way to get the scale without setting manually the map units.
0 Kudos
MuhammadWaqar_ul_islam
Occasional Contributor
thanks dbroux
it is working but still i problem remains
print to scale  doesnt change the extent
1:3400000 scale print is same as 1:1200 ( create confusion)
i attaching images for urs reference to understand

and when version 2.3 is available for us
0 Kudos
by Anonymous User
Not applicable
Original User: dbroux

thanks dbroux
it is working but still i problem remains
print to scale doesnt change the extent
1:3400000 scale print is same as 1:1200 ( create confusion)


It's not just confusion, it's not working at all:confused:.

What are your map units?

In the preview window, do you see the page numbers changing when modifying the scale?

If your service is public, can you share the Url in order me to test.
0 Kudos
MuhammadWaqar_ul_islam
Occasional Contributor
Thanks for reply

My service is not public so can't share the url

In the preview window, it shows only a single page 1
when modifying the scale no changes occurs in page numbers

My units are in meter
UTM WGS1984 is projection
Origin:
X: -5120900
Y: 9998100

Spatial Reference: 32642
Intial Extent:

XMin: 275353.299157335
YMin: 2731407.98325904
XMax: 345891.356900117
YMax: 2782809.53322303
Spatial Reference: 32642

Full Extent:

XMin: 276887.885559841
YMin: 2735545.1734472
XMax: 344356.770497611
YMax: 2778672.34303487
Spatial Reference: 32642

Units: esriMeters

what next to do
0 Kudos
by Anonymous User
Not applicable
Original User: dbroux

I did some tests.
I get this kind of wrong result if the MapUnits are not initialized and can't be found automatically.

But it looks working well if the MapUnits are manually initialized.

Did you set the MapPrinter MapUnits?
Something like :
<
controls:MapPrinter x:Name="mapPrinter" Map="{Binding ElementName=MyMap}" MapUnits="Meters" ......
0 Kudos
MuhammadWaqar_ul_islam
Occasional Contributor
thanks dbroux
its working using mapunits = "meter"
for forget to add mapunits in mapprint control
its also helps others if add this line in read me file (thanks alot) u r always helping us
One more thing i want to ask in esri  book mark
when we add some bookmark wants to clear a single book marks its clear all bookmark
is there any possibility to clear a selected bookmark only no all
0 Kudos
by Anonymous User
Not applicable
Original User: dbroux

Glad you got it working 🙂

Concerning the possibility to clear the selected bookmarks, there is a sample here.
0 Kudos