private function printResult(searchResult:Object):void { if (currentState=="stateSelectExtent") btnPrint2.enabled=true; else btnPrint.enabled=true; var resultString:String=searchResult.toString(); trace("resultString: "+resultString); if(resultString.indexOf("<html>")>-1) { Alert.show(resultString, "Error during print!"); } else { var obj:Object=com.esri.ags.utils.JSON.decode(searchResult.toString()); trace("obj.outputFile: "+obj.outputFile); if(obj.outputFile) { //todo: preparations for ArcGIS 10.1 if(obj.outputFile.indexOf("/rest/directories")==0) { obj.outputFile = "http://localhost:6080/arcgis"+obj.outputFile; } trace("obj.outputFile: "+obj.outputFile); navigateToURL(new URLRequest(obj.outputFile)); } else { Alert.show(searchResult.toString(), "Error during print!"); } } }
I randomly receive this error in a little grey box with an ok button: Error during print! An error occurs during print I click on OK and it just returns me to the web app.When I look in the arcgisoutput folder the mxd and the pdf are there and they have all of the elements. Any ideas?
I have it working, but sometimes get the error. I am still testing it, but it seems to happen when I have a layer or layers with a transparency that I set in the flexviewer config.xml file. Sometimes the legend shows the symbology properly and sometimes it looks odd. I definitely get the error every time I have more items in my legend than can be displayed on the layout. I have not figured out how to set the legend not to exceed the size of the layout.Luci
Hi Tom,I randomly receive this error in a little grey box with an ok button: Error during print! An error occurs during print I click on OK and it just returns me to the web app.When I look in the arcgisoutput folder the mxd and the pdf are there and they have all of the elements. Any ideas?I am using the PCHarcgisSOE.jar dated 2/1/2012, the pchprintwidget dated 1/31/2012, Flexviewer 2.5, AGS Api 2.5 dated 11/30/2011, ArcGIS Server 10, ArcGIS Desktop 10 Service Pack 3, and Java version 1.6.0_16On a side note, where do you change the selection for the type of North Arrow used in the map?This is an awesome tool and I cant wait for our staff to be able to use it!Thank you!Luci
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.