Select to view content in your preferred language

Getting undefined when trying to create new PrintTemplate

1016
3
Jump to solution
02-21-2012 08:40 AM
ShawnHolyoak
Deactivated User
I've started to play with the new Print functionality at 10.1, and I'm getting an error when trying to create a PrintTemplate object.  I just copied the code snippet and I get undefined.

var template = new esri.tasks.PrintTemplate();
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
Are you using the print task or the print dijit? Make sure you have a dojo.require for whichever you're using and the print template should be available.

View solution in original post

0 Kudos
3 Replies
derekswingley1
Deactivated User
Are you using the print task or the print dijit? Make sure you have a dojo.require for whichever you're using and the print template should be available.
0 Kudos
ShawnHolyoak
Deactivated User
I did.  I just had it in the wrong place.  D'oh!  Thanks.

Are you using the print task or the print dijit? Make sure you have a dojo.require for whichever you're using and the print template should be available.
0 Kudos
derekswingley1
Deactivated User
Nice, thanks for marking my reply as the answer.
0 Kudos