Printing Word Documents from Access

R

Ron

From an Access module I can open a Word template and
populate bookmarks from data in a recordset. This works
nicely, but results in several open documents which have
to be individually printed and closed.Is there a method
to automate printing the documents in my module? I would
like it to work similiar to opening an Access report as
acnormal.
Thanks,
Ron
 
S

SA

Ron:

Assuming that you have a document object in your existing code representing
the document you've filled and now want to print, all you need to do is add
code like this:

objDoc.PrintOut , _
Background:=False, _
Range:= 0 'wdPrintAllDocument
 

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