afrocodes

Print Widget freezes PrintTask error loading proxy

Discussion created by afrocodes on Jun 3, 2014
Latest reply on Jun 3, 2014 by afrocodes
Hi,

I'm currently having an issue with the Print Widget in my downloaded web app.

First, the print widget freezes after being clicked in Chrome 35 and firefox 29.
In IE 9, I get this error about "proxy.ashx?http://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute status: 500".

I'm assuming something is wrong with PrintTask then?

Current code for printing related functions:

        displayprint: !(environment.TouchEnabled),
                    printtask: "http://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task",
     //printtask: "http://staging.geodata.md.gov/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task",
                    //Set the label in the nls file for your browsers language
                    printlayouts: [{
                        layout: 'Letter ANSI A Landscape',
                        label: 'Landscape - PDF',//i18n.tools.print.layouts.label1,
                        format: 'PDF'
                    }, {
                        layout: 'Letter ANSI A Portrait',
                        label:  'Portrait - PDF',//i18n.tools.print.layouts.label2,
                        format: 'PDF'
                    }, {
                        layout: 'Letter ANSI A Landscape',
                        label:  'Landscape - PNG',//i18n.tools.print.layouts.label3,
                        format: 'PNG32'
                    }, {
                        layout: 'Letter ANSI A Portrait',
                        label:  'Portrait - PNG',//i18n.tools.print.layouts.label4,
                        format: 'PNG32'
                    }],

   if (response.values.displayprint != undefined) {
                                configOptions.displayprint = response.values.displayprint;




How can I get the print button to work?

Thanks.

Outcomes