Solved

print attachment  with vba code

Posted on 2008-10-27
4
769 Views
Last Modified: 2013-11-27
In access 2007 it is possible to very easy save an attachment
but how can you print that attachment  (pdf)  , have heard that  pdf is intregrated in access 2007
can't seem to find anything about this , anywhere
anyone have any ideas
0
Comment
Question by:darkprowler
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 22812149
The pdf integration in A2007 allows you to print TO a pdf, not FROM a pdf.
0
 

Author Comment

by:darkprowler
ID: 22812933
okay   not good
what about printing attachment if you have adobe acrobat installed , will that do any difference
0
 
LVL 77

Accepted Solution

by:
peter57r earned 125 total points
ID: 22813950
You can do..
Dim x
x = Shell("c:\program files\adobe\reader 9.0\reader\AcroRd32.exe /t c:\folder\file.pdf")

(Obviously you must use your own path for the acrobat reader.)
0
 

Author Comment

by:darkprowler
ID: 22814322
hi peter
well yes this works fine , just hoped there was a way not to  use shell

thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question