Prev: VBA Word 2003
Next: Selecting a paragraph
From: Mike Viens Mike on 19 Jun 2008 17:50 Doug, This does not address the issue of needing to do this from command line. I, too, am in the same situation and have ended up in the same stopping point as Steve. The command I need to run is: rundll32 SHELL32.DLL,ShellExec_RunDLL winword somefile.doc /mFilePrintSetup "\\dc-lan-02\KONICA MINOLTA C450 PS" /mFilePrintDefault /mDocClose /mFileExit I need the /mFilePrintSetup to automatically select the specified printer and close the dialog. That way, the /mFilePrintDefault will now use the newly selected printer (but not the true system default printer) without prompting the user for any input. Does anyone have a workable COMMAND LINE example of how to do this. I cannot install a macro on 1000s of customers systems. Mike V. "Doug Robbins - Word MVP" wrote: > See the article "Changing the selected (current) printer in Word without > changing the system default printer" at: > > http://www.word.mvps.org/FAQs/MacrosVBA/ChangeCurPrinter.htm > > > -- > Hope this helps. > > Please reply to the newsgroup unless you wish to avail yourself of my > services on a paid consulting basis. > > Doug Robbins - Word MVP > > "Steve" <Steve(a)discussions.microsoft.com> wrote in message > news:5856030F-B584-405A-A9C0-466DCD878806(a)microsoft.com... > > From the command line, I am trying to print a document to a network > > printer > > which is not the default printer. I think I am close with the following, > > but > > not quite right - > > > > Winword.exe c:\test\test3.txt /mFilePrintSetup \\sagplna06\KONICA05PS > > /mFilePrint m/FileExit > > > > Where am I going wrong? - probably some syntax with the printer name I > > suspect. > > > > -- > > Steve > > >
|
Pages: 1 Prev: VBA Word 2003 Next: Selecting a paragraph |