469,090 Members | 1,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

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 1524
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.