AnsweredAssumed Answered


Question asked by pthibault on Aug 23, 2012
Latest reply on Aug 24, 2012 by pthibault
I can not seem to get my print to recognise a template.

In the INIT function I have:

printer = new esri.dijit.Print({  
map: map, 
templates: template,
url: "http://gistest2:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
},  dojo.byId("printButton"));   

This work well, except for the template.  I defined the template variable in the init function, before the printer as:

var template = new esri.tasks.PrintTemplate();
template: [{    
label: "Map it",    
format: "GIF",    
layout: "A4 Portrait",    
  exportOptions: {      
  width: 200,     
  height: 200,      
  dpi: 96 } 


I get a map, but none of the template formating is seen.