Hi guys, i have write a script for export Map of my web personal application. The code is
<mx:Script> <![CDATA[ public function PrintPDFx():void { var sURL:String; sURL = "http://193.204.163.134/ArcGIS/rest/services/Roma/Carg_Roma/MapServer/export"; sURL = "?bbox="+myMap.extent.xmin+","+myMap.extent.ymin+","+myMap.extent.xmax+","+myMap.extent.ymax; //sURL+="&layers="; sURL+="&size="+myMap.width+","+myMap.height; sURL+="&format=pdf"; sURL+="&trasparent=false"; //sURL+="&dpi"; sURL+="&f=image"; sURL+="&width"+myMap.width; sURL+="&height"+myMap.height; navigateToURL(new URLRequest(sURL),'_blank'); } ]]>
but i have a problem. When i click the button on my web application, opens a new website but not pdf with the service I set it to print. Why? My script is wrong? Thanks