<?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: Exporting to Image / PDF (running in circles) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667335#M17201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;Where is the PrintTask for Toolkit 2.2?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;PrintTask is a new functionality of SL3.0 (and ArcGIS Server 10.1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 07:52:27 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-12-09T07:52:27Z</dc:date>
    <item>
      <title>Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667331#M17197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any definitive source to look at for code to export the Silverlight map and its elements to an image or PDF? From what I see, it is a pain, and it seems like I'm running in circles looking at different code samples and examples trying to find a viable solution. Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried various things and I'm able to save various non-map elements to an image or PDF, but as soon as I try to save the element that contains the map control, I get the WriteableBitmap access security errors since I am pulling services from other domains. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why can I print the map using the built-in Silverlight print functionality, but not save it as an image?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 14:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667331#M17197</guid>
      <dc:creator>BrentStevener</dc:creator>
      <dc:date>2011-10-14T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667332#M17198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is supported in ArcGIS Server 10.1 Beta 1 and ArcGIS API for Silverlight 3.0 Beta 1. Here's a sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 16:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667332#M17198</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-10-14T16:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667333#M17199</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;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of wainting for 10.1 and the Silverlight 3.0 API, I decided to create my own process. I would post the source-code, but I don't beleive I have the leagal authority to do so I'll do my best to explain my process;&amp;nbsp; this only works if you have access to the server hosting ArcGIS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I summary here is what I did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; I created a directory containg empty MXDs but with the pagelayout defined.&amp;nbsp; For example: 8x11.mxd, 11x17.mxd, etc..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I created a directory with layer files matching each map service I publised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; I then created a python script that accepts some parameters like, the extent of the map, the mxd name, and a JSON object of layer ids that correspond to the layers I created in step two, the array of visible layer ids, and a definition query for each layer if needed. When the script executes, it opens the appropraite mxd, loads the appropriate .lyr file(s), and then itterates to the layers in the .lyr file and sets the visiblity and definition query.&amp;nbsp; All of this data is passed to the sciprt in JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; I published this script as a GPProcess so I can access it via the Silverlight API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.&amp;nbsp; On the client, Silverilght, I loop through all the layers in the map control to see which ones are visible.&amp;nbsp; If a layer is visible, I capture the ID of that layer, which corresponds to a .lyr file on the server, get the array of VisibleLayers, and the collection of LayerDefinitions.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6.&amp;nbsp; Then I send all of this data back to the Server along with the map extent, the scale , and the pagelayout, again this matches the mxd I created in step 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. The Python script attached to the GPProcess, takes this information and creates a PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The challengs is creating the script and sending the data to it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't do all of this in one shot.&amp;nbsp; I stared out by creating a simple script and exports a PDF and sends the url back to the clint.&amp;nbsp; Once I figured that out, I expanded to accepting mxd names, etc.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 17:58:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667333#M17199</guid>
      <dc:creator>JasonCleaver</dc:creator>
      <dc:date>2011-10-19T17:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667334#M17200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is supported in ArcGIS Server 10.1 Beta 1 and ArcGIS API for Silverlight 3.0 Beta 1. Here's a sample: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap"&gt;http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#ExportWebMap&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is the PrintTask for Toolkit 2.2? I would like to use it for exporting maps into different formats?&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;GS&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 17:05:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667334#M17200</guid>
      <dc:creator>GeorgeShi</dc:creator>
      <dc:date>2011-12-08T17:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667335#M17201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;Where is the PrintTask for Toolkit 2.2?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;PrintTask is a new functionality of SL3.0 (and ArcGIS Server 10.1)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 07:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667335#M17201</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-12-09T07:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Image / PDF (running in circles)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667336#M17202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Implemented this PrintTask but it always returns e.Error Unable to complete operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error executing tool.: Layer "BaseLayer": Unable to connect to map server at &lt;/SPAN&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Export Web Map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Export Web Map Task).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: The server that has ArcGIS Server installed has some weird rule that it &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot have INTERNET access.&amp;nbsp; So when I login to that server I cannot hit&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus, I am suspecting that the Print Tool rest service fails on this layer because it cannot connect to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you confirm that the Print Tool must have INTERNET connections in order for it to print BaseMap layers from &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisonline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, how can I test my Print Task using rest interface: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wellsgis.slb.com:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute"&gt;http://wellsgis.slb.com:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what Web Map JSON I can paste into the box before clicking Execute Task (Get)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to manual put a web map json from my internal map to at least test it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 21:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/exporting-to-image-pdf-running-in-circles/m-p/667336#M17202</guid>
      <dc:creator>AnastasiaAourik</dc:creator>
      <dc:date>2013-01-16T21:23:44Z</dc:date>
    </item>
  </channel>
</rss>

