Hi everyone,
I've got a problem with the print widget ! When I try to "print" a pdf (or something else) the graphicLayers are shown but not the Layers...
When I use a proxy, layer are just forgotten, and when i tried without, i get an error (screen joined)
I really have no idea how to do ...
Thank you in advance
Florian,
Do you see errors in the browsers web console? Have setup the serverUrl(s) for the map service machines that the print uses?
Hello Robert,
No error in the console but the problem doesn't come with the imported graphicsLayer. So I guess this occurs because of the HTTPS of the queried services I try to print and that are displayed as Layers.
"Have setup the serverUrl(s) for the map service machines that the print uses?"
hun ... I didn't know that I have to configure something in the print widget... What should I do exactly ?
Florian,
Did you set the serverUrls in the proxy.config to use https in their url? Is you print service using http or https?
Robert,
huuum .. no, i didn't do anything like that ...
I'm discovering the associated doc : Use proxy—Web AppBuilder for ArcGIS | ArcGIS
I didn't need that until now !
So I have to modify the main config.json with a print service url and the config.json of the print widget ?
I my happiness could be there ? Print Widget not working for layers that require a proxy url
Florain,
I was not saying that you need to secure your print service. Actually if you do secure your print service you will have another issue. I was just asking if your had already secured your print service as that is a big issue.
Oh ... a ... I really don't know ...
The URL that seems to be used is this one : https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...
But I don't know where I have to setup this url !
Florian,
So it looks like the first thing you need to do is configure the print widget to use your own print service instead of the generic esri utilities one.
Florian,
Until you get yours up and running, you could use this one.
For printing, I usually have to set up a proxy, although it is basically an "empty" proxy. it has to do with the length of what needs to be sent (push vs get?)
this is an older thread, can't find the one I wanted, but I have some info javascript Print Secured Service