AnsweredAssumed Answered

esri/tasks/PrintTask in 4.3

Question asked by vmagnis on Mar 21, 2017

I am trying to use the esri/tasks/PrintTask.  But  keep getting this error.  

TypeError: Cannot read property 'query' of undefined


I am using 4.3 api



var printTask = new PrintTask({ url: printUrl });

var template = new PrintTemplate({ format: "pdf", exportOptions: { dpi: 300 }, layout: "a4-portrait", layoutOptions: { titleText: "Warren Wilson College Trees", authorText: "Sam" } });

var params = new PrintParameters({ view: view, template: template });

printTask.execute(params).then(printResult, printError);