Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    Chatham, Ontario, Canada
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post

    Linking with GetObject (97/sr2)

    Can anyone tell me what the class to use to open Microsoft Image Editor using GetObject?

    I can open the files using FollowHyperLink but Image Editor is not the default graphics program on all of the machines and I need to have the same program throughout.

    I have been unable to make GetObject work with the file as an argument so I'm at a complete loss as to how to get it to open Image Editor, then the file.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Linking with GetObject (97/sr2)

    Are you talking about Imaging for Windows, the imaging prgram that comes with at least some versions of Windows, or something else?
    Charlotte

  3. #3
    Star Lounger
    Join Date
    Jan 2001
    Location
    Chatham, Ontario, Canada
    Posts
    86
    Thanks
    5
    Thanked 1 Time in 1 Post

    Re: Linking with GetObject (97/sr2)-MULTI-Re: Linking%

    I seem to have succumbed to brian fade. The program is Photo Editor not Image Editor and it shipped with Office 97 and Word 97.

    I don't particularly care which program is used since all I need is something to view a picture of the inventory item. I picked Photo Editor because it was already there an I thought it might be easier to get a MS program to work.

  4. #4
    Bronze Lounger
    Join Date
    Nov 2001
    Location
    Arlington, Virginia, USA
    Posts
    1,394
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Linking with GetObject (97/sr2)-MULTI-Re: Linking%

    You're not gonna be able to use GetObject with Photo Editor, it's not an "ActiveX component" or application that can be used with Automation. You won't find it listed in the available References list and browsing for it won't work either. You can use the simple Shell function to open a file with Photo Editor, example:

    Dim strAppName As String
    Dim strFilename As String
    strAppName = "C:Program FilesCommon FilesMicrosoft SharedPhotoEdPHOTOED.EXE"
    strFilename = "C:IconsGIFsreptileslizard0b.gif"
    Call Shell(strAppName & " " & strFilename, 1)

    I have both Office 97 and Office 2K installed on this machine & above path is where PHOTOED.EXE resides. If other users have standard installation of Office this should work but no guarantee everybody will have standard installation.
    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •