Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.access.macros,microsoft.public.word.application.errors,microsoft.public.word.conversions,microsoft.public.word.docmanagement
LP
 
Posts: n/a
Default printing double side from command line macro in MS word

You are correct that double side realted to a printer drive. However I've
recorded a macro which is selecting a printer and double side printing for
me. Macro works fine when I have myd document open and prints on boths side.
It however acts diffently when I open same document with word from command
line it still prints but only on a gingle side. My understanding is that if
should be a switch to open word from command line with all the options.
thank you,
LP
"Cooz" wrote in message
...
Hi LP,

Double-sided printing is something you set in the printer driver. You
cannot, by my knowledge, access the printer driver from VBA.

What you can do if your printer "speaks" PCL, is insert a Print field at
the
beginning of your document (Insert | Fields...) to which you add the PCL
instructions to print double sided. Consult your printer manual or the
internet for the exact codes you have to use.

Good luck,
Cooz
--
PS: If this is a satisfying answer to your question and you're logged in
via
the Microsoft site, please click Yes to "Did this post answer the
question?".
Thanks.


"LP" wrote:

I am trying to setup double side printing from MS Word 2002 calling word
from command line with macro.

There was no problem to record a macro and execute it from the word
document.

My problem is that it will not print double side with same macro from
command line (prints single side instead)

"C:\Program Files\Microsoft Office\OFFICE10\winword.exe" /mprintdx3
filename

Macro name is printdx3



It looks like it doesn't load full MS word environment.

I've also tried to use /x / mprintdx3 filename with the same results.

1. Please advice on how to print from command line in my case

2. How to add command to my macro to wait until printing is done and exit
from the doc?

Thank you,

LP





 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
In Word, how do I surpress headers and footers on page 2 Bill Microsoft Word Help 1 December 15th 05 06:13 PM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM


All times are GMT +1. The time now is 10:45 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"