×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Print Word documents from Access

Print Word documents from Access

Print Word documents from Access

(OP)
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

RE: Print Word documents from Access

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close