AnsweredAssumed Answered

IE8 - Does Not Print map.graphics layer

Question asked by jjtrier on May 17, 2012
Latest reply on Aug 6, 2014 by jefc
Good afternoon,

I'm building dynamic reports that pull tract data from our database.  I include a map of the location at the bottom of the page.  When I print the report in standard-compliant browsers, everything displays properly.  When using Internet Explorer 8, however, only the map itself prints - the map.graphics layer does not print.

Searched for a solution to this issue to no avail... this thread was the closest I found but had no resolution that seemed effective.  Tried selecting 'Print background images & colors' in IE preferences - no dice.

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:

sendQuery = task.execute(query);
  sendQuery.then(function(loc) {
    symbol = new esri.symbol.SimpleFillSymbol();
    symbol.setColor(new dojo.Color([255,0,0,0.5]));
    gfx= loc.features[0].geometry;
    map.graphics.add(new esri.Graphic(gfx, symbol));
  });


The obvious answer, 'print from FF', unfortunately doesn't work because IE support is a requirement for the report.  Any thoughts or code snippets that can get me going in the right direction would be greatly appreciated!  Thanks in advance!

Jim

Outcomes