Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Print to Fit

Status
Not open for further replies.

greg0303

Technical User
May 5, 2006
94
CA
I am using VBScript, part of the script will open a Word document in the background and print it to a print then close. I would like to print to one sheet if the document spills over to a second page. Is there a way to use the Shrink to fit option through VBScript. Here is how I am currently printing:

Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open(DoctoPrint)
objDoc.PrintOut()
objWord.Quit wdDoNotSaveChanges

Thanks.
 
Not sure exactly how the syntax goes but you need
Document.FitToPages Method
search for this in msdn
wjwjr

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 
...
objDoc.FitToPages
objDoc.PrintOut
...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top