<?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 Re: Flex Viewer printing in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631778#M14052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I get the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So ArcGIS Server doesn't store the most recent map image somewhere on the ArcGIS server box?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like a .PNG or .JPG would get written to the server every time a user pans,zooms,etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I am expecting it to work like ArcIMS(??).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 16:43:00 GMT</pubDate>
    <dc:creator>WillHughes1</dc:creator>
    <dc:date>2011-01-06T16:43:00Z</dc:date>
    <item>
      <title>Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631771#M14045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read through the forums and not sure if its a function of the new search appliance that is used but i am failing to find good information on printing the Flex viewer map &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;plus &lt;/SPAN&gt;&lt;SPAN&gt;the open widgets.&amp;nbsp; The current print widget does a dandy job printing the map itself but clients are asking for the ability to include the open widgets in the printed map. any suggestions would be graciously accepted and returned with a bump. thank you very much and have a nice day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;some GIS guy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 21:25:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631771#M14045</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-06-29T21:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631772#M14046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This is how you do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the PrintWidget.mxml add this import and change the line bellow that I have commented out to the new line below it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import com.esri.solutions.flexviewer.SiteContainer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bmpMap:BitmapData = ImageSnapshot.captureBitmapData(SiteContainer.getInstance());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //var bmpMap:BitmapData = ImageSnapshot.captureBitmapData(map);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631772#M14046</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631773#M14047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert, that works great. Is there a way to specify individual items with in the container to include or exclude from the print/exported version?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is actually the 5th time i have tried to reply hopefully it works. Also i guess the Support forum has not implemented the "mark as answered" or the tools to give you credit (for the MVP program), i will check back and bump you when the functionality is there. But for the time being "Bump" to you kind sir.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 23:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631773#M14047</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2010-07-01T23:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631774#M14048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there an update to this for FV2.1 ? The code above does not seem to work for the latest viewer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 17:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631774#M14048</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2010-12-08T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631775#M14049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Phillip,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sure just use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.viewer.ViewerContainer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bmpMap:BitmapData = ImageSnapshot.captureBitmapData(ViewerContainer.getInstance());
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631775#M14049</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631776#M14050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var bmpMap:BitmapData = ImageSnapshot.captureBitmapData(map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this above what you would use to grab a snapshot of the last map image, if for instance you want to insert the map image snapshot into a report?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone out there have a tool that does this or something similar?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to query two points on the map, zoom to the two points, and then get a snapshot of the map and have that inserted into a report (report is a cf page but it could be .mxml or html).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 01:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631776#M14050</guid>
      <dc:creator>WillHughes1</dc:creator>
      <dc:date>2011-01-06T01:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631777#M14051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Yep that will work for getting the bitmap data but that is not a image in the sense of something like a jpg that you could share with some html code. You are dealing with client memory and if you have to get an actual image (like a jpg) to the server than you have a lot more to do. I prefer to handle all the report generation and printing client side in actionscript or mxml code. Anyway to accomplish what you are asking for you need to add an event listener to the map service that the two points are in and listen for com.esri.ags.events.LayerEvent.UPDATE_END and on that event fire the image snapshot code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 12:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631777#M14051</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-01-06T12:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631778#M14052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I get the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So ArcGIS Server doesn't store the most recent map image somewhere on the ArcGIS server box?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like a .PNG or .JPG would get written to the server every time a user pans,zooms,etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I am expecting it to work like ArcIMS(??).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 16:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631778#M14052</guid>
      <dc:creator>WillHughes1</dc:creator>
      <dc:date>2011-01-06T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631779#M14053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Well technically yes it does but you really have to understand how things work under the hood. Each map service produces an image in it's default format on the server and then Flex API merges those (Could be several)&amp;nbsp; images into one on the client. So if you have a map service coming from ArcGIS Online and it is cached than it is just returning those cached tiles that make up the AOI of your map but those come from the ArcGIS online server and not yours.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 16:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631779#M14053</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-01-06T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631780#M14054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Robert, that works great. Is there a way to specify individual items with in the container to include or exclude from the print/exported version?&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an easy solution to get an individual widget to print?&amp;nbsp; I would like the static image widget to show up and none of the others?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 13:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631780#M14054</guid>
      <dc:creator>LeeAllen</dc:creator>
      <dc:date>2011-05-23T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer printing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631781#M14055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lee,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Definitely no easy way to do this... You would have to loop through the open widgets and make a list of them and then close all the widgets besides the static image one and then after the map was exported to an image re-open the closed ones.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 13:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-printing/m-p/631781#M14055</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-05-23T13:41:47Z</dc:date>
    </item>
  </channel>
</rss>

