<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Printing &amp;amp;amp;amp; Opening PDFs using Flex GP Widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/printing-amp-amp-amp-opening-pdfs-using-flex-gp/m-p/440184#M12619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a geoprocessing service that gathers some user-inputted parameters, does some processing and then creates a PDF output showing the results (from a MXD template). Most of the processing is standard modelbuilder, but the print bit at the end is a python script that references the MXD template and generates and opens up the PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It all works fine when run from Catalog but when it is run as a service, I can't get the PDF to pop up. I know that the rest of the process is working (because I can access the results via a popup) and the process does not return any errors, but I can't get the result PDF to open up in the browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using os.startfile and webbrowser.open to open the PDF (both of which work in catalog) but I know that they have some issues when being run with arcpy. I have used the workaround wrapped suggested &lt;/SPAN&gt;&lt;A href="http://arcpy.wordpress.com/2013/10/25/using-os-startfile-and-webbrowser-open-in-arcgis-for-desktop/"&gt;here&lt;/A&gt;&lt;SPAN&gt; but it hasn't solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, does anyone have any smart ideas as to&lt;/SPAN&gt;&lt;STRONG&gt; how I can get a PDF output to automatically open in a browser &lt;/STRONG&gt;&lt;SPAN&gt;when it is the output of a GP service in a Flex application? Happy to post screenshots/code if it would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running Server 10.2.1 and Flex 3.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Natalie Scott&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Interpret Geospatial Solutions&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2014 00:35:04 GMT</pubDate>
    <dc:creator>NatalieScott</dc:creator>
    <dc:date>2014-06-05T00:35:04Z</dc:date>
    <item>
      <title>Printing &amp;amp;amp; Opening PDFs using Flex GP Widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/printing-amp-amp-amp-opening-pdfs-using-flex-gp/m-p/440184#M12619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a geoprocessing service that gathers some user-inputted parameters, does some processing and then creates a PDF output showing the results (from a MXD template). Most of the processing is standard modelbuilder, but the print bit at the end is a python script that references the MXD template and generates and opens up the PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It all works fine when run from Catalog but when it is run as a service, I can't get the PDF to pop up. I know that the rest of the process is working (because I can access the results via a popup) and the process does not return any errors, but I can't get the result PDF to open up in the browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using os.startfile and webbrowser.open to open the PDF (both of which work in catalog) but I know that they have some issues when being run with arcpy. I have used the workaround wrapped suggested &lt;/SPAN&gt;&lt;A href="http://arcpy.wordpress.com/2013/10/25/using-os-startfile-and-webbrowser-open-in-arcgis-for-desktop/"&gt;here&lt;/A&gt;&lt;SPAN&gt; but it hasn't solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, does anyone have any smart ideas as to&lt;/SPAN&gt;&lt;STRONG&gt; how I can get a PDF output to automatically open in a browser &lt;/STRONG&gt;&lt;SPAN&gt;when it is the output of a GP service in a Flex application? Happy to post screenshots/code if it would be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running Server 10.2.1 and Flex 3.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Natalie Scott&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Interpret Geospatial Solutions&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 00:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/printing-amp-amp-amp-opening-pdfs-using-flex-gp/m-p/440184#M12619</guid>
      <dc:creator>NatalieScott</dc:creator>
      <dc:date>2014-06-05T00:35:04Z</dc:date>
    </item>
  </channel>
</rss>

