Printing to Scale

831
2
06-14-2010 09:50 PM
BrianBorg
Emerging Contributor
I am developing silverlight client GIS application and I want to give the feature to the user to print maps according to some predefined scales for example 1:1000, 1;2500, etc... on different paper sizes. I assume that I have to write webservices using arcobjects or something similar but I do not have a clue from where to start.

Any help is appreciated
0 Kudos
2 Replies
nicogis
MVP Alum
if you are interested I have posted this sample http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&script...
for print template mxd
you can use:
- PrintClient.dll on soc
- wsPrintClient (web service wcf)

In wsPrintClient you must do edit source code for graphics SL because it's for graphics javascript (if you need it)

wsPrintClient  is service rest so you create your UI and call your code from sl.


if you don't need print template mxd you can use:
http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=166...


in sl4 you also can use code ( see http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/04/Take-advantage-of-new-Silverlight-... ) :

PrintDocument doc = new PrintDocument();
doc.PrintPage += (s, e) => {   
   e.PageVisual = MyMap;   
   e.HasMorePages = false; 
}; 
doc.Print("Map");
0 Kudos
MichaelRose
Occasional Contributor
Have you seen any examples of people using this with their own graphics layer?  I have implemented your solution to my Silverlight application but am currently unable to print my custom graphics.

Thanks in advance!
0 Kudos