|
-
Nov 30th, 2001, 03:48 PM
#1
Thread Starter
Fanatic Member
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 
-
Nov 30th, 2001, 06:56 PM
#2
Thread Starter
Fanatic Member
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Nov 30th, 2001, 07:36 PM
#3
Frenzied Member
What's a MHT file? You say you have embedded content, is it in a resource file?
-
Dec 1st, 2001, 07:28 AM
#4
Thread Starter
Fanatic Member
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 
-
Dec 1st, 2001, 11:31 AM
#5
Thread Starter
Fanatic Member
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Dec 1st, 2001, 03:57 PM
#6
Thread Starter
Fanatic Member
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 
-
Dec 1st, 2001, 04:03 PM
#7
i think Kzin no one know that answer sorry.
-
Dec 3rd, 2001, 04:59 AM
#8
Thread Starter
Fanatic Member
I don't believe it DaoK Bloodeye might for a start.
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Dec 3rd, 2001, 06:36 AM
#9
? 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|