<?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 IE8 - Does Not Print map.graphics layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273077#M25189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good afternoon, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm building dynamic reports that pull tract data from our database.&amp;nbsp; I include a map of the location at the bottom of the page.&amp;nbsp; When I print the report in standard-compliant browsers, everything displays properly.&amp;nbsp; When using Internet Explorer 8, however, only the map itself prints - the map.graphics layer does not print. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Searched for a solution to this issue to no avail... &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=259007&amp;amp;mc=7" rel="nofollow" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; was the closest I found but had no resolution that seemed effective.&amp;nbsp; Tried selecting 'Print background images &amp;amp; colors' in IE preferences - no dice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe I'm doing anything wrong with my function call to draw the graphics (they do display across all browsers on-screen), here it is for reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;sendQuery = task.execute(query);&lt;BR /&gt;&amp;nbsp; sendQuery.then(function(loc) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleFillSymbol();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([255,0,0,0.5]));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfx= loc.features[0].geometry;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(new esri.Graphic(gfx, symbol));&lt;BR /&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The obvious answer, 'print from FF', unfortunately doesn't work because IE support is a requirement for the report.&amp;nbsp; Any thoughts or code snippets that can get me going in the right direction would be greatly appreciated!&amp;nbsp; Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 15:21:47 GMT</pubDate>
    <dc:creator>JamesTrier</dc:creator>
    <dc:date>2012-05-17T15:21:47Z</dc:date>
    <item>
      <title>IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273077#M25189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good afternoon, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm building dynamic reports that pull tract data from our database.&amp;nbsp; I include a map of the location at the bottom of the page.&amp;nbsp; When I print the report in standard-compliant browsers, everything displays properly.&amp;nbsp; When using Internet Explorer 8, however, only the map itself prints - the map.graphics layer does not print. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Searched for a solution to this issue to no avail... &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=259007&amp;amp;mc=7" rel="nofollow" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; was the closest I found but had no resolution that seemed effective.&amp;nbsp; Tried selecting 'Print background images &amp;amp; colors' in IE preferences - no dice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe I'm doing anything wrong with my function call to draw the graphics (they do display across all browsers on-screen), here it is for reference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;sendQuery = task.execute(query);&lt;BR /&gt;&amp;nbsp; sendQuery.then(function(loc) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleFillSymbol();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([255,0,0,0.5]));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfx= loc.features[0].geometry;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(new esri.Graphic(gfx, symbol));&lt;BR /&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The obvious answer, 'print from FF', unfortunately doesn't work because IE support is a requirement for the report.&amp;nbsp; Any thoughts or code snippets that can get me going in the right direction would be greatly appreciated!&amp;nbsp; Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 15:21:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273077#M25189</guid>
      <dc:creator>JamesTrier</dc:creator>
      <dc:date>2012-05-17T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273078#M25190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what function are you using to print? This is more than likely due to the wonderful fact the IE does not support svg and therefore using a vml graphics renderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Good afternoon, &lt;BR /&gt;&lt;BR /&gt;I'm building dynamic reports that pull tract data from our database.&amp;nbsp; I include a map of the location at the bottom of the page.&amp;nbsp; When I print the report in standard-compliant browsers, everything displays properly.&amp;nbsp; When using Internet Explorer 8, however, only the map itself prints - the map.graphics layer does not print. &lt;BR /&gt;&lt;BR /&gt;Searched for a solution to this issue to no avail... &lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2396&amp;amp;t=259007&amp;amp;mc=7"&gt;this thread&lt;/A&gt; was the closest I found but had no resolution that seemed effective.&amp;nbsp; Tried selecting 'Print background images &amp;amp; colors' in IE preferences - no dice.&lt;BR /&gt;&lt;BR /&gt;I don't believe I'm doing anything wrong with my function call to draw the graphics (they do display across all browsers on-screen), here it is for reference:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;sendQuery = task.execute(query);&lt;BR /&gt;&amp;nbsp; sendQuery.then(function(loc) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleFillSymbol();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol.setColor(new dojo.Color([255,0,0,0.5]));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfx= loc.features[0].geometry;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(new esri.Graphic(gfx, symbol));&lt;BR /&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;The obvious answer, 'print from FF', unfortunately doesn't work because IE support is a requirement for the report.&amp;nbsp; Any thoughts or code snippets that can get me going in the right direction would be greatly appreciated!&amp;nbsp; Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Jim&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 15:39:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273078#M25190</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-05-17T15:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273079#M25191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;jeff.pace&lt;BR /&gt;what function are you using to print? This is more than likely due to the wonderful fact the IE does not support svg and therefore using a vml graphics renderer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using good ol' CTRL+P, which is what my users would most likely do as well.&amp;nbsp; Any way to convert the graphics from SVG to VML?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for taking a look, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; Did some Googling, looks like VML is IE proprietary (of course).&amp;nbsp; Found some info on converting from SVG to VML with XSLT but I don't know if that can be done with the ESRI graphics?&amp;nbsp; I'm not all that familiar with XSLT...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 15:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273079#M25191</guid>
      <dc:creator>JamesTrier</dc:creator>
      <dc:date>2012-05-17T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273080#M25192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe I solved this one, so I'll post what I did, hoping it helps someone else... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to map highlights, the requirements called for a compass rose.&amp;nbsp; Decided to just add a DIV with a custom image, so I created one in PNG.&amp;nbsp; When I tested print layout, the compass rose didn't print, but the map highlights did!&amp;nbsp; To test further, I took the image out.&amp;nbsp; Sure enough, with the next print test, no highlights! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My theory at this point was that IE omitted the topmost graphics layer from printing.&amp;nbsp; I whipped up a 1x1 pixel #FFF PNG and added that to the top of the map and... voila!&amp;nbsp; The map printed properly, complete with highlight and compass rose.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This solution is quite hackish, but then again, what IE code isn't?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added two spans to the map DIV with the following CSS:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#compass { &amp;nbsp; background : transparent url('../../../../images/compass.png') center no-repeat; &amp;nbsp; height:100px; &amp;nbsp; left:0; &amp;nbsp; position:absolute; &amp;nbsp; top:0; &amp;nbsp; width:100px; &amp;nbsp; z-index:10; } #onepixel { &amp;nbsp; background : transparent url('../../../../images/1by1.png') center no-repeat; &amp;nbsp; height:1px; &amp;nbsp; left:0; &amp;nbsp; position:absolute; &amp;nbsp; top:0; &amp;nbsp; width:1px; &amp;nbsp; z-index:9; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks jeff.pace for taking a look at the issue!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273080#M25192</guid>
      <dc:creator>JamesTrier</dc:creator>
      <dc:date>2012-05-21T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273081#M25193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that is great!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 14:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273081#M25193</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-05-21T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: IE8 - Does Not Print map.graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273082#M25194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried adding a topmost graphic like you said but it didn't help.&amp;nbsp; Luckily for me I found another way to solve it.&amp;nbsp; Try adding the IE compatibility meta tag to your page.&amp;nbsp; At a minimum make sure it includes the "IE=7" because "IE=edge" alone isn't enough.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7, IE=edge" /&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 23:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/ie8-does-not-print-map-graphics-layer/m-p/273082#M25194</guid>
      <dc:creator>JeffChapin</dc:creator>
      <dc:date>2014-08-06T23:43:45Z</dc:date>
    </item>
  </channel>
</rss>

