Results 1 to 9 of 9

Thread: Webbrowser 3! Handling MIME format

  1. #1

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Webbrowser 3! Handling MIME format

    In http://www.vbforums.com/showthread.p...hreadid=123150
    Bloodeye showed me how to put an string containing HTML into a webbrowser. Now I need to put a string containing MIME format info from an MHT file in in the same way, so that I can get a Webbrowser to display pages including embedded content exactly as if they were loaded into the Webbrowser normally.
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  2. #2

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    ?
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  3. #3
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    What's a MHT file? You say you have embedded content, is it in a resource file?

  4. #4

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    Ok

    If you save a web page from MSIE you get a choice of saving it as a "Web Archive Single File" in MSHTML format. The file gets called a *.mht file. This file is in text format with no unreadable (binary) charcaters (looks like Radix-64) and can then be saved, archived e-mailed etc and when reloaded into MSIE and contains any graphics, music etc that were embedded in the original by <img> tags etc. They show correctly in the Webbrowser with webbrowser.navigate The question is how can I put such a file straight into MSIE

    Here is a snippet of an MHT file
    From: <Saved by Microsoft Internet Explorer 5>
    Subject: WSJ.com Home Page
    Date: Wed, 14 Nov 2001 18:05:59 -0000
    MIME-Version: 1.0
    Content-Type: multipart/related;
    boundary="----=_NextPart_000_0000_01C16D37.03A490B0";
    type="multipart/alternative"
    X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

    This is a multi-part message in MIME format.

    ------=_NextPart_000_0000_01C16D37.03A490B0
    Content-Type: image/gif
    Content-Transfer-Encoding: base64
    Content-Location: http://public.wsj.com/images/ushome-header.gif

    R0lGODlh/QJVANU/AO/v7////z9PkLq7wdzo9JExAWBwr1BvpM/Pz0RUnJypzKeoqM2hi3CEv8/V
    4zE6dyYnWHFufKDA79/f377B3unSyJGfwI6OlDBDj4CaztK9tObm5uPs9I1DHn4qAKBBEfH0+
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  5. #5

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    ?
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  6. #6

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    This from MSDN about MSHTML

    The parsing and rendering of HTML documents in the WebBrowser control is handled by the MSHTML component of Microsoft® Internet Explorer 4.0 and later. The MSHTML component is an Active Document (also known as a DocObject) that provides support for parsing and rendering HTML, exposes the Dynamic HTML (DHTML) Object Model, and hosts Microsoft ActiveX® Controls and script languages. See Reusing MSHTML for details about directly hosting the MSHTML component in your application. The WebBrowser control acts as a container for the MSHTML component and implements navigation, hyperlinking, history lists, favorites, and security. Applications can also use the WebBrowser control to host Active Documents other than MSHTML. This means that richly formatted documents, such as Microsoft Excel spreadsheets or Microsoft Word documents, can be opened and edited in place from within the WebBrowser control.
    http://msdn.microsoft.com/library/de...asp?frame=true

    You can see now how powerful the Webbrowser is for rendering if you can put data straight into it.
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  7. #7
    DaoK
    Guest
    i think Kzin no one know that answer sorry.

  8. #8

    Thread Starter
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    I don't believe it DaoK Bloodeye might for a start.
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  9. #9
    DaoK
    Guest
    ? Sorry but you are answering your self more than once in that thread.

Posting Permissions

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



Click Here to Expand Forum to Full Width