Printing Word Documents from Access

  • Thread starter Thread starter Ron
  • Start date Start date
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
 
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
 
Back
Top