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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Word documents from Access

Status
Not open for further replies.

mcurry

Technical User
Oct 15, 2000
1
US
I've been trying to develop a solution where Access will search a directory and list all Word documents, then provide the option of printing one of these documents. Sounds simple, but I haven't been able to accomplish this effeciently. I've tried:
1. Using a command button to initiate the Word program with a macro to start the print. Unfortunately, I've not been able to design a macro that will close Word at print completion. Any exit routine starts before the spool has finished and triggers an error event.
2. I've tried making the table storing the document locations as 'OLE objects', but the format of the document when inserted into a report is nonsensical. 'CLIP' does just that, and clips the document, ZOOM and STRETCH also don't seem to allow the Word document to format properly on a report.

Sorry I'm a relative novice and could use some suggestions.

Mark Curry [sig][/sig]
 
Mark,

my suggestion would be to look at using Word via automation. The FMS Total Visual Sourcebook has a class which provides a load of functionality.

Cheers,
Steve C. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top