printing 11x17 from SW 2010 api
printing 11x17 from SW 2010 api
(OP)
Previous to SW 2010, we had a macro that would print all the part drawings associated with the open assembly. This macro was able to print the drawings on 11x17 (tabloid).
To do this, the code opened each drawing and used:
Document.PrintSetup(0) = 3 (tabloid sheet size)
Document.PrintSetup(1) = 2 (landscape)
Document.PrintSetup(2) = 4318 (page length)
Document.PrintSetup(3) = 2794 (page width)
Document.PrintOut2 1, ShtCnt, NumCopies, False, swApp.ActivePrinter, 0#, False, False
Since going to SW2010, this macro will only print the drawings on 8.5x11 sheets and seems to ignore the Document.PrintSetup(x) values.
Nothing I've tried will print the drawings on 11x17.
Any thoughts?
thanks,
Killswitch2
To do this, the code opened each drawing and used:
Document.PrintSetup(0) = 3 (tabloid sheet size)
Document.PrintSetup(1) = 2 (landscape)
Document.PrintSetup(2) = 4318 (page length)
Document.PrintSetup(3) = 2794 (page width)
Document.PrintOut2 1, ShtCnt, NumCopies, False, swApp.ActivePrinter, 0#, False, False
Since going to SW2010, this macro will only print the drawings on 8.5x11 sheets and seems to ignore the Document.PrintSetup(x) values.
Nothing I've tried will print the drawings on 11x17.
Any thoughts?
thanks,
Killswitch2






RE: printing 11x17 from SW 2010 api
Deepak Gupta
SW 2009 SP4.1 & 2007 SP5.0
MathCAD 14.0
Boxer's Blog
RE: printing 11x17 from SW 2010 api
My code had been around since '05 and I guess it needed a little updating.
Everything seems to be working fine now.
Thanks,
Killswitch2