Solved

print attachment  with vba code

Posted on 2008-10-27
4
760 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

912 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now