Solved! Go to Solution.
require([ "esri/map", "esri/tasks/PrintTask", "esri/tasks/PrintParameters", ... ], function(Map, PrintTask, PrintParameters, ... ) { var map = new Map( ... ); var printTask = new PrintTask( ... ); var params = new PrintParameters(); params.map = map; printTask.execute(params, printResult); ... });
require([ "esri/map", "esri/tasks/PrintTask", "esri/tasks/PrintParameters", ... ], function(Map, PrintTask, PrintParameters, ... ) { var map = new Map( ... ); var printTask = new PrintTask( ... ); var params = new PrintParameters(); params.map = map; printTask.execute(params, printResult); ... });