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

Printing pdf from MS Access

Status
Not open for further replies.

rwweiland

Programmer
Oct 15, 2003
9
US
Hello all,

I have succeeded in opening a pdf file in code, but now I need to have Access automatically print the pdf form. Can anyone give me some insite to how to do this?

This is how I am getting the pdf form to open.

wbName = "C:\PMs\" & fName & ".pdf"
appName = "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"
whole = appName & " " & wbName
Call Shell(whole, vbMaximizedFocus)

Thanks,
 
Hi,

I don't know about Acrobat Reader v5, but Reader v6 has a /p option to print the file, so you change your code to:

whole = appName & " /p " & wbName

to trigger the print function.

Not sure if this works with v5, but worth a try.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top