×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

printing 11x17 from SW 2010 api

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

RE: printing 11x17 from SW 2010 api

(OP)
Thanks Gupta65, that post really helped.
My code had been around since '05 and I guess it needed a little updating.

Everything seems to be working fine now.


Thanks,
Killswitch2

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources