View Single Post
  #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