Link to home
Start Free TrialLog in
Avatar of nomoney
nomoney

asked on

How Do I print a word doc from an attachment field in a report in Access 2007

I found one user who gave up and just decided to use ole instead of the attachment field, I would really like to print the document in a report instead of the Icon if anyone has any ideas.  I have looked everywhere and can find no reference
Avatar of JoshuaPHG
JoshuaPHG
Flag of United States of America image

I have access 2003 handy, but it does sound similar to a piece we have here.  The field that stores the attachment, if you go into design view of the table, what is the datatype?  OLE Object?
Avatar of Jeffrey Coachman
nomoney,

You cant print Directly from the attacment Field.

You have to open the file.

- RightClick the Attachment Field
- Select "Manage Attachment"
- Select the file
-
Opps!

(Continued...)

- Click Open


Once the file is open, you can print it normally.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm playing with Access 2007 now.  Attachement datatype does not appear to be created to do "exactly" as you want it.  Jeff is correct.  Also see http://www.cimaware.com/resources/article_135.html
To all,

Funny thing is that Attachment Image files will display in a report.

JeffCoachman
Avatar of nomoney
nomoney

ASKER

Thanks, I got in a "let's use something new and cool" loop and needed someone to get me out of it. I'm getting to old for this. : ) LOL
;-)

There are some advantages to using the Attachment datatype, though
The best being that now the files get compressed internally.

Most developers still prefer to link the data rather than use OLE or Attachment datatypes.

JeffCoachman
Avatar of nomoney

ASKER

boaq2000-
Jeff-
I was trying to allow easy doc additions for the customer and unfortunately did testing with images and as you mentioned they worked, so duh, I didn't get around to testing the doc's until the customer was testing, so popping an ole field seemed a quick fix, but now per your suggestion I'm contemplating how to make a link easy for them to use. This is a small customer with only a few doc's that would ever be stored per client, but I shouldn't limit the customer.
Thanks again
OK,

So where do we stand on this question?
Avatar of nomoney

ASKER

Per your previous statement you cannot print an attachment in a report.
Thanks
There are many techniques to linking the files.

If you need any basic help, let me know