Questions tagged [mhtml]

MHTML, MIME-HTML, is a webpage format that can combine different resources, such as text, images, flash, audio or much more in one file.

In MHTML, the combination of resources such as text, images, flash, etc. can be achieved on through the use of MIME multipart/related content type.

MHTML defines the naming of objects that are normally referred to by URLs and the means of aggregating resources that go together. Two MIME headers, Content-Location and Content-Base, are defined in order to resolve references to other content stored locally in related body parts. Content-Base gives an absolute URL base, or "starting point",for relative URLs that appear in other MIME headers and in HTML documents that do not contain any BASE HTML elements. Content-Location specifies the URL that corresponds to the content of the body part that contains this header.

MHTML is commonly used in emails.


Resources :

172 questions
1
vote
0 answers

Unable to open mht file in IE

I am trying to extract the attachments from an email mht file and write to separte mht files.I used the code in this link Extracting mht files to extract and write the attachments to a file. Apparently I am unable to open the output mht files in the…
karthikbharadwaj
  • 368
  • 1
  • 7
  • 17
1
vote
1 answer

Open up .MHT link in excel

So I have a local sever website that we have a status board at my command center (military). We are displaying an excel spreadsheet on this website as a .mht I want to create a button to edit this (because the people I work with cannot figure out…
Brandon
  • 41
  • 2
  • 9
1
vote
1 answer

How to convert HTML to MHTML using Python?

How to convert HTML to MS Word compatible format especially the Image ? Basically I need to convert HTML (Generated from TinyMCE) To MS Word Doc with Images etc (non URL images) and I figured out that MS Word doesn't support Data URI HTML standards…
Nishant
  • 20,354
  • 18
  • 69
  • 101
1
vote
2 answers

HtmlAgilityPack - Convert MHTML To HTML as String

I have a MHTML file and I am trying to convert it to HTML. I have installed the HtmlAgilityPack and tried the following code: var doc = new HtmlAgilityPack.MixedCodeDocument(); doc.Load("C:\\Users\\DickTracey\\Downloads\\Club Membership…
Trevor Daniel
  • 3,785
  • 12
  • 53
  • 89
1
vote
1 answer

How to use chrome.pageCapture.saveAsMHTML()?

I am building a chrome extension that will parse through the HTML of whatever website the user is viewing for metadata. I am super new at using the chrome API, and I am trying to figure out how to use chrome.pageCapture.saveAsMHTML(object details,…
1
vote
1 answer

Show mail message in WebBrowser control

I'm trying to design a mailing system (.NET C#). Messages are stored in database in two tables: message(Message_id, Receiver, Sender, Subject, ...) //message's header message_parts(Message_id, Content_id, Part_type, Content) So, the content of…
Pavel
  • 11
  • 2
1
vote
1 answer

C# Converting HTML to MHT file

I'm trying to convert an HTML file to MHT file using a code which uses interop ADODB and CDO files. The code itself which I'm using is not relevant. The problem is that the ADODB and CDO dlls are causing me problems since I've got some windows 7…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
1
vote
2 answers

Convert HTML to MHTML

Is there any way to convert HTML and its associated images to MHTML in windows mobile?
Naruto
  • 9,476
  • 37
  • 118
  • 201
1
vote
1 answer

Viewing MHTML (.mht) file in web page

Technology at my disposal: HTML, HTML5, LINQ, C#, ASP.net, Razor, jQuery, Javascript, Entity I would like to view my MHTL file on my website. Is this possible? I tried using IFrame but this only forced a download of the file.
James Wilson
  • 5,074
  • 16
  • 63
  • 122
1
vote
2 answers

Need to Upload mht file format to wordpress site

I have some '.mht' files. I need to upload that file in to my word press site. but when i upload that files, its showing "HTTP ERROR" Error. Is there any other way to upload '.mht' files to word press site.
user2645981
1
vote
0 answers

open mht file in phone:WebBrowser

I have an application which displays help to user using webbrowser control. Now i'm able to display HTML correctly but If i try to display mht file (which contains images). It throws System.NullReferenceException. Both files are located at same…
Amod Gokhale
  • 2,346
  • 4
  • 17
  • 32
1
vote
1 answer

Batch file to remove certain string from multiple files across multiple folders

I have a folder with many subfolders each containing dozens of .mht files of different lengths. I need help creating a batch script to filter out this certain string: "" I can the add lines of html to the file before adding it back…
1
vote
0 answers

vbscript - how to do a string replace?

Im using this vbscript code to save a page displayed in IE9 as a mht file. To run it, place it in the favourites bar and then click it. The problem is it will save the the page but the filename will end in ## for example homepage##.mht. Does anyone…
omega
  • 40,311
  • 81
  • 251
  • 474
1
vote
2 answers

Multipart HTML and embedded images from .NET without disk access?

I'm working on a product that creates MS Word output by generating an HTML document with the appropriate bits of Word CSS and XML magic embedded in it. I now need to embed RTF (images and styled text) in the document, and so am looking at the…
Patrick Linskey
  • 1,124
  • 1
  • 13
  • 24
1
vote
0 answers

Is there any tool to check the format of .mht file?

I have a nearly 20M .mht file which is generated by TestComplete during automation testing. The file generated in batch mode cannot be opened by IE. The node seems to be correct, but just no content shown on the page. However, if I generate a the…
imapollo
  • 387
  • 1
  • 2
  • 16