A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Printing Word Documents from Access



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 05:39 PM
Ron
external usenet poster
 
Posts: n/a
Default Printing Word Documents from Access

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
  #2  
Old May 26th, 2004, 02:01 PM
SA
external usenet poster
 
Posts: n/a
Default Printing Word Documents from Access

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

--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg


"Ron" wrote in message
...
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.