Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Printing and Fonts / November 2004

Tip: Looking for answers? Try searching our database.

How to print a duplex page and have the printer go back to default setting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tonya Marshall - 08 Nov 2004 01:12 GMT
At work we have an HP Laserjet 2300dtn which can duplex print. We have
to manually set it for the duplex printing and then when through, have
to go back and change it to the default setting as it retains the last
setting. We print more than one of the document we are duplexing and
there is no consistent amount. It depends on the number of staff for
that shift (3 shifts).

Is there a way that the duplex/default settings can be automatically
done without having to go back to the printer settings?

Cross-posted to printingfonts & vba.beginners

Signature

Tonya Marshall

Jonathan West - 08 Nov 2004 09:59 GMT
Hi Tonya,

take a look at this article

Controlling the Printer from Word VBA
Part 2: Using VBA to control Duplex, Color Mode and Print Quality
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=116

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

> At work we have an HP Laserjet 2300dtn which can duplex print. We have to
> manually set it for the duplex printing and then when through, have to go
[quoted text clipped - 7 lines]
>
> Cross-posted to printingfonts & vba.beginners
Tonya Marshall - 08 Nov 2004 12:28 GMT
Thanks, Jonathan. I sent myself the link at work and will post back
about how it worked, etc.
Tonya Marshall

> Hi Tonya,
>
[quoted text clipped - 3 lines]
> Part 2: Using VBA to control Duplex, Color Mode and Print Quality
> http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=116
Tonya Marshall - 08 Nov 2004 16:10 GMT
When I run the macro I get a compile error: Sub or Function not
defined and it highlights "SetDuplex" 3
These are the choices for the printer:
Default Print Settings
Duplex
Duplex - 180

Tonya Marshall

> Hi Tonya,
>
[quoted text clipped - 15 lines]
> >
> > Cross-posted to printingfonts & vba.beginners
Jonathan West - 08 Nov 2004 16:24 GMT
You need to include all the code at the end of the article as well as the
small code sample near the start

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

> When I run the macro I get a compile error: Sub or Function not
> defined and it highlights "SetDuplex" 3
[quoted text clipped - 28 lines]
>> >
>> > Cross-posted to printingfonts & vba.beginners
Tonya Marshall - 09 Nov 2004 02:06 GMT
OK. I'm at home and don't have a duplex printer to test it on but wanted
to check and make sure I did it right. I created a template  and put in
the printduplexbooklet macro  which went into the NewMacros module and
put a button on a toolbar I named duplex..

I created Module1 into which I  copied and pasted the code at the end of
the article.  I've never created another module within VB so am checking
if I did it right.  I right-clicked on the modules folder/insert/module
and it came out named Module1.  I will send the template to work and
test it out tomorrow barring any warnings or "don't do that" from you.

Tonya Marshall

> You need to include all the code at the end of the article as well as the
> small code sample near the start
Jonathan West - 09 Nov 2004 13:50 GMT
> OK. I'm at home and don't have a duplex printer to test it on but wanted
> to check and make sure I did it right. I created a template  and put in
[quoted text clipped - 6 lines]
> and it came out named Module1.  I will send the template to work and test
> it out tomorrow barring any warnings or "don't do that" from you.

Yes, that sounds right.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Tonya Marshall - 09 Nov 2004 16:06 GMT
OK, at work now and tested it. It worked fine but I was unable to
choose how many copies I wanted. We print several of the documents at
one time and need to be able to control that part of it, too.

> OK. I'm at home and don't have a duplex printer to test it on but wanted
> to check and make sure I did it right. I created a template  and put in
[quoted text clipped - 11 lines]
> > You need to include all the code at the end of the article as well as the
> > small code sample near the start
Jonathan West - 09 Nov 2004 16:19 GMT
> OK, at work now and tested it. It worked fine but I was unable to
> choose how many copies I wanted. We print several of the documents at
> one time and need to be able to control that part of it, too.

You can change this line

   ActiveDocument.PrintOut Background:=False

to this

   Dialogs(wdDialogFilePrint).Show

This will display the print dialog so that the user can choose how many
copies are printed.

Alternatively, you can simply set the Copies parameter of the PrintOut
method to the appropriate value, like this

   ActiveDocument.PrintOut Background:=False, Copies:=3

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

Tonya Marshall - 10 Nov 2004 00:02 GMT
I chose the first option as it's not a static amount. Jonathan, those
macros must have taken a lot of thought and time to write. I am so
pleased with the results - it worked smoothly without any hitches and I
truly appreciate what you have done. Thank you so much for walking me
through all of that, and I had the easy part to do. Just copy and paste.

As I said in a previous post, I had never worked with modules and I had
a kind of Aha! moment there. Speculation and multiple possibilities
about modules have been swirling around so I'm going to start a new
subject about modules as I have a lot of questions.

Thank you again for all your help and macros.

Tonya Marshall

>> OK, at work now and tested it. It worked fine but I was unable to
>> choose how many copies I wanted. We print several of the documents at
[quoted text clipped - 15 lines]
>
>     ActiveDocument.PrintOut Background:=False, Copies:=3
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.