This is a standard question I get whenever I teach or meet someone who works with ArcGIS Server Java ADF “How do I print the map in my web application”
Unfortunately at version 9.2 printing is not made available out-of-the-box either in the mapping template or as an configurable task. However this could be done using a custom task. I find this approach not suitable to most users since
- You might have multiples resources in the map
- You might have graphics on the map
I have this simple solution of implementing the same print functionality but using Javascript. Sounds easy right! Infact its really easy.
Here are the two simple steps involved
- Add the JavaScript code to the jsp page
- Create a html link (anchor) or input button which calls the JavaScript print function
Before I go further for folks using the .Net Web ADF there is a sample and article on how to add a print task to the web app on the ArcGIS Server Development blog. (Here is the link)
Lets look at the actual code



