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

VBA print pdf files

Status
Not open for further replies.

fmalouda25

Programmer
Aug 24, 2008
3
IE
Hey

I was wondering if someone could help.
I have an application in Excel that selects pdf files from a combo dropdown box. When clicked it will print off this pdf files.

This works fine but i do however keeps getting this annoying message: Acrobat Reader This files may contain newer information than this viewer can support....

This is with Acrobat Reader 5.0 and i HAVE to have this version installed.

I tried the following but the message still appears

Code:
Call ShellExecute(0, vbNullString, strURL, vbNullString, vbNullString, 0) 'Change 0 to vbNormalFocus to view.
    'Application.Wait (Now + TimeValue("0:00:02"))
    Application.SendKeys "{ENTER}"
    PrintURL = ShellExecute(0, "print", strURL, vbNullString, vbNullString, vbHide) 'Change 0 to vbNormalFocus to view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top