Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.access.macros,microsoft.public.word.application.errors,microsoft.public.word.conversions,microsoft.public.word.docmanagement
|
|||
|
|||
printing double side from command line macro in MS word
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 |
#2
Posted to microsoft.public.access.macros,microsoft.public.word.application.errors,microsoft.public.word.conversions,microsoft.public.word.docmanagement
|
|||
|
|||
printing double side from command line macro in MS word
Another thing you can do is create a separate printer driver for the printer
that defaults to the setting you want. In your vba code, you can select that printer driver. -- Charles Kenyon Word New User FAQ & Web Directory: http://addbalance.com/word Intermediate User's Guide to Microsoft Word (supplemented version of Microsoft's Legal Users' Guide) http://addbalance.com/usersguide See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! --------- --------- --------- --------- --------- --------- This message is posted to a newsgroup. Please post replies and questions to the newsgroup so that others can learn from my ignorance and your wisdom. "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 |
#3
Posted to microsoft.public.access.macros,microsoft.public.word.application.errors,microsoft.public.word.conversions,microsoft.public.word.docmanagement
|
|||
|
|||
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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How can Word display full path of a file in the title bar? | Microsoft Word Help | |||
Does Word have a QuickCorrect/Quick Word option like WordPerfect? | New Users | |||
In Word, how do I surpress headers and footers on page 2 | Microsoft Word Help | |||
Macros - Keyboard Commands | Microsoft Word Help | |||
In Word, how can I see all files (*.*) in "save as"? | New Users |