printing

  • Thread starter Thread starter Joel Allen
  • Start date Start date
J

Joel Allen

Hello,

I have this bit of code that opens the file, prints it, and close it:

objDoc.Application.Options.PrintBackground = True

objDoc.PrintOut

objDoc.Close wdDoNotSaveChanges



How can I choose a specific printer?

How can I bypass warnings from the word document like "The margins are set
outside of the printable area"?



Thanks,

Joel
 
Take a look at Word's Application.ActivePrinter property.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
I'm sorry, can you help me just a little more. I want to learn.

Would I find that in the Object Browser? If you could just point me a
little further where to find options for the Word's
Application.ActivePrinter properties it would be much appriciated.

THanks,
Joel

Take a look at Word's Application.ActivePrinter property.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
If you have a reference to the Microsoft Word library in your VBA project, all you have to do is search for ActivePrinter in the object browser (F2 in VBA). For any selected object, method, property, etc., press F1 to see its Help topic.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top