How to Print an existing Word doc (not a merged doc, simply text) ?

A

Adam

Hi all,

we have a document that I need to print out using a command button. the
document is a static one and doesn't require merging of any fields/data etc.

Does anyone know how I can achieve this ?

cheers,

Adam
 
A

Albert D. Kallal

Try:

dim WordApp as object

Set WordApp = CreateObject("Word.Application")
WordApp.Documents.Open("c:\path to your doc\thedoc.doc")
WordApp.ActiveDocument.PrintOut False
WordApp.ActiveDocument.Close False
WordApp.Quit
Set WordApp = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top