<?xml version="1.0" ?> <configuration> <!-- change this URL to your own Export Web Map Task (requires ArcGIS 10.1), or just remove the taskurl tag to get quick printing --> <taskurl>http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task</taskurl> <layouttemplates visible="true"> <layouttemplate>MAP_ONLY</layouttemplate> <layouttemplate>Tabloid ANSI B Landscape</layouttemplate> <layouttemplate>Tabloid ANSI B Portrait</layouttemplate> </layouttemplates> <formats visible="true">png32,png8,jpg,gif,eps,svg,svgz</formats> </configuration> <!-- See Print widget tag reference at http://links.esri.com/printwidget -->
Solved! Go to Solution.
<mx:FormItem id="layoutTemplatesFI"
width="100%"
includeInLayout="{shouldShowTemplateOptions}"
visible="{shouldShowTemplateOptions}">
<!--
<s:DropDownList id="layoutTemplatesDDL"
dataProvider="{printTask.getServiceInfoLastResult.layoutTemplates}"
requireSelection="true"/>
-->
<s:DropDownList id="layoutTemplatesDDL"
width="100"
requireSelection="true">
<mx:ArrayCollection>
<fx:String>MAP_ONLY</fx:String>
<fx:String>Tabloid ANSI B Landscape</fx:String>
<fx:String>Tabloid ANSI B Portrait</fx:String>
</mx:ArrayCollection>
</s:DropDownList>
</mx:FormItem>
<mx:FormItem id="formatsFI"
width="100%"
includeInLayout="{shouldShowFormatOptions}"
visible="{shouldShowFormatOptions}">
<!--
<s:DropDownList id="formatsDDL"
dataProvider="{printTask.getServiceInfoLastResult.formats}"
requireSelection="true"/>
-->
<s:DropDownList id="formatsDDL"
width="100"
requireSelection="true">
<mx:ArrayCollection>
<fx:String>PNG32</fx:String>
<fx:String>PNG8</fx:String>
<fx:String>JPG</fx:String>
<fx:String>GIF</fx:String>
<fx:String>EPS</fx:String>
<fx:String>SVG</fx:String>
<fx:String>SVGZ</fx:String>
</mx:ArrayCollection>
</s:DropDownList>
</mx:FormItem><?xml version="1.0" ?> <configuration> <!-- change this URL to your own Export Web Map Task (requires ArcGIS 10.1), or just remove the taskurl tag to get quick printing --> <taskurl>http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task</taskurl> </configuration>
Error executing print task: [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute"]