Shell IE ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Bell

    #1

    Shell IE ?

    Hi How can I use VB.Net Application to open IE and get it to display;
    1. a JPEG image from a file?
    2. a JPEG image held in memory?

    Any guidance appreciated,

    Doug


  • Carlos J. Quintero [VB MVP]

    #2
    Re: Shell IE ?

    Hi,

    1. If you are sure that you want to use Internet Explorer and not the
    application associated with .jpeg files you can use:

    System.Process. Start("IEXPLORE .EXE","<image file")

    or something like that.

    2. You can save it in a temporary file in the temporary folder.

    --

    Best regards,

    Carlos J. Quintero

    MZ-Tools: Productivity add-ins for Visual Studio
    You can code, design and document much faster:
    MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.




    "Doug Bell" <vodaphoneSUCKS @starhub.com.au > escribió en el mensaje
    news:uMEHpKgiGH A.4040@TK2MSFTN GP05.phx.gbl...[color=blue]
    > Hi How can I use VB.Net Application to open IE and get it to display;
    > 1. a JPEG image from a file?
    > 2. a JPEG image held in memory?
    >
    > Any guidance appreciated,
    >
    > Doug
    >
    >[/color]


    Comment

    • Doug Bell

      #3
      Re: Shell IE ?

      Thanks Carlos,
      That is not what I am trying to Achieve.
      I don't want to open a new instance of Explorer, I want to pass to the
      opened instance the file or stream to open.

      So Does IE have an object model that I can drive?

      And will it accept a stream rather than a file?

      Thanks

      Doug


      "Carlos J. Quintero [VB MVP]" <carlosq@NOSPAM sogecable.com> wrote in message
      news:eYOWzDhiGH A.836@TK2MSFTNG P02.phx.gbl...[color=blue]
      > Hi,
      >
      > 1. If you are sure that you want to use Internet Explorer and not the
      > application associated with .jpeg files you can use:
      >
      > System.Process. Start("IEXPLORE .EXE","<image file")
      >
      > or something like that.
      >
      > 2. You can save it in a temporary file in the temporary folder.
      >
      > --
      >
      > Best regards,
      >
      > Carlos J. Quintero
      >
      > MZ-Tools: Productivity add-ins for Visual Studio
      > You can code, design and document much faster:
      > http://www.mztools.com
      >
      >
      >
      > "Doug Bell" <vodaphoneSUCKS @starhub.com.au > escribió en el mensaje
      > news:uMEHpKgiGH A.4040@TK2MSFTN GP05.phx.gbl...[color=green]
      > > Hi How can I use VB.Net Application to open IE and get it to display;
      > > 1. a JPEG image from a file?
      > > 2. a JPEG image held in memory?
      > >
      > > Any guidance appreciated,
      > >
      > > Doug
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Doug Bell

        #4
        Automate IE

        OK, I have worked out how to automate IE
        referencing ShdocVw.dll

        I can use its .Navigate method to get it to open a Jpeg file.

        I am still wondering if there is any way to stream a .JPG to it without
        serialising it to a file first?

        Doug

        "Doug Bell" <vodaphoneSUCKS @starhub.com.au > wrote in message
        news:uMEHpKgiGH A.4040@TK2MSFTN GP05.phx.gbl...[color=blue]
        > Hi How can I use VB.Net Application to open IE and get it to display;
        > 1. a JPEG image from a file?
        > 2. a JPEG image held in memory?
        >
        > Any guidance appreciated,
        >
        > Doug
        >
        >[/color]


        Comment

        Working...