Select to view content in your preferred language

Is there any print example that can be referenced for SL 4?

10705
71
07-14-2010 01:18 PM
weiliang
Deactivated User
I try to incorporate the print feature into our website (with SL 4, and ESRI API 2.0). I used the following code, but it direct me to the print dialog box only. How can I make a print template (e.g., http://citizengis.chesterfield.gov/) to print the current map extent with some controls (e.g, scale bar) into a pdf. Is there any easy way to do so or I must create a WCF service?


PrintDocument doc = new PrintDocument();
doc.PrintPage += (s, e) =>
{
   e.PageVisual = MyMap
   e.HasMorePages = false;
};
doc.Print("Map");

Many thanks,

Wei
0 Kudos
71 Replies
DominiqueBroux
Esri Frequent Contributor
there is a need to print a map in a user defined scale. how can I define the printout extent based on the scale? Anyone has a formula for this purpose?
thanks

There is a print sample allowing to set the output scale here : http://www.arcgis.com/home/item.html?id=e361c2cc69784fcba34358d0458f66e3
0 Kudos
ManojrajTeli
Deactivated User
not working for me because i dont have tile layers and i have mostly feature layers and dynamic layers and it is not showing anything in print section..
0 Kudos