472,127 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

when i run the functio Shell "C:\Program Files\PDF Suite\PDF Suite.exe" the Acrobats

2
when i run the function
Shell "C:\Program Files\PDF Suite\PDF Suite.exe"
the Acrobat program opens. but when i add the file name
Shell "C:\Program Files\PDF Suite\PDF Suite.exe + Shell C:\Quarterly Bulletins\Publications-pdf\xyz.pdf", vbNormalFocus

error message "FORMAT NOT SUPPORTED" comes.
what is the error?
Sep 14 '10 #1
3 1573
Guido Geurs
767 Expert 512MB
This is working in VB6=

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2. Dim PDF
  3. PDF = Shell("C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe C:\Program Files\Adobe\Reader 9.0\Reader\IDTemplates\ENU\AdobeID.pdf", 1)
  4. End Sub
Sep 14 '10 #2
mataa
2
thanks for your response. now it says file cannot be found. what do you mean by
a) IDTemplates
b) ENU
c) AdobeID
Sep 14 '10 #3
Guido Geurs
767 Expert 512MB
This is working on MY pc because Adobe Reader is on:
"C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" and a PDF file is on:
"C:\Program Files\Adobe\Reader 9.0\Reader\IDTemplates\ENU\AdobeID.pdf"

For You it will be:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click() 
  2. Dim PDF 
  3. PDF = Shell("C:\Program Files\PDF Suite\PDF Suite.exe  C:\Quarterly Bulletins\Publications-pdf\xyz.pdf", 1) 
  4. End Sub 
Sep 15 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by marco | last post: by
3 posts views Thread by Martin Ink | last post: by
3 posts views Thread by Dean Slindee | last post: by
2 posts views Thread by Dean Slindee | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.