Re: Shell Execute


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on September 21, 2011 at 11:28:21:

In Reply to: Shell Execute posted by Les Toeplitz on September 21, 2011 at 07:26:56:

Oh my !

Have a look in Word | Tools | Macro | Record New Macro

Open a doc
print it

Tools | Macro | Stop Recording
Tools | Macro | Macros...
Pick your macro & hit EDIT

All your answers are there, the ReadOnly, the ActivePrinter and all the print options.

You can start Word using a Macro see this link:

http://winhlp.com/WordCommandLineSwitches.htm

Here's a sample Macro...

Sub WordMacro1()
'
' WordMacro1 Macro
' Macro recorded 9/21/2011 by Robert G Laurin
'
Documents.Open FileName:="""myDocument.doc""", ConfirmConversions:= _
False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto, XMLTransform:=""
ActivePrinter = "HP LaserJet 9050ps"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]