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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mataa
    New Member
    • Sep 2010
    • 2

    #1

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

    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\Publi cations-pdf\xyz.pdf", vbNormalFocus

    error message "FORMAT NOT SUPPORTED" comes.
    what is the error?
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    This is working in VB6=

    Code:
    Private Sub Command1_Click()
    Dim PDF
    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)
    End Sub

    Comment

    • mataa
      New Member
      • Sep 2010
      • 2

      #3
      Shell function

      thanks for your response. now it says file cannot be found. what do you mean by
      a) IDTemplates
      b) ENU
      c) AdobeID

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        This is working on MY pc because Adobe Reader is on:
        "C:\Program Files\Adobe\Rea der 9.0\Reader\Acro Rd32.exe" and a PDF file is on:
        "C:\Program Files\Adobe\Rea der 9.0\Reader\IDTe mplates\ENU\Ado beID.pdf"

        For You it will be:

        Code:
        Private Sub Command1_Click() 
        Dim PDF 
        PDF = Shell("C:\Program Files\PDF Suite\PDF Suite.exe  C:\Quarterly Bulletins\Publications-pdf\xyz.pdf", 1) 
        End Sub

        Comment

        Working...