Select to view content in your preferred language

How to create printurl for my local arcgis server?

695
1
04-13-2013 11:45 PM
JaySirinrat
New Contributor
Dear all,

I'd like to create a demo of print dijit using map services in my arcgis server (v. 10.05). I've followed
the example of print widget in ags sdk for v.10 and realized that the printing task didn't work at all.
So I think it may be because there is no print url on the server. Could anyone tell me how to create the
printing url? If I'm wrong for the printing concept, could anyone advice me in the right way.
I'd like to have something like "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer" on the server.


This is a piece of sample code --

// print dijit
app.printer = new esri.dijit.Print({
map: app.map,
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%2..."
}, dojo.byId("printButton"));
app.printer.startup();


Thank you very much.
Jay
0 Kudos
1 Reply
DennisHunink
Deactivated User
If you want to run it on your own server then it must be enabled there. Easier is using a proxy, as the examples does. Something like this: [HTML]esri.config.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx";[/HTML]
0 Kudos