Fog Creek Software
Discussion Board

Converting a .HTML to a .MHT file 

Is there any way to convert an HTML file into a MHT file

the nice thing with MHT is that if you send a report via HTML
which contains pictures, everything is packed into one singlefile, so it's a very convenient file format.

Basically I am looking for any tool such as OCX, Automation controller, .EXE

Which can convert an HTML file into a MHT file

Is there any 3rd party tool or FreeWare out there which can does the job ?

Tarek Demiati
Thursday, March 20, 2003

but also have a look at

Just me (Sir to you)
Thursday, March 20, 2003

There are very many limitations with .mht files.

I used to save all my IE files that way after I found out how neat it was. I found that I lost over 20% of the files.

If you want to transfer the file over the web .mht is useless (at least in the IE version). The path to the miages is the path on the local machine and once you put the file on the other machine it is broken. I found this out after hand-coding a 70 page html handbook to send by email. I ended up sending the html document and associated graphic files as a self-extracting zipped file that extracted to the default temp directory which it opened in explorer showing the folder and a shortcut that you could click on and open everything.

Stephen Jones
Thursday, March 20, 2003

MHT files can include their references inline. Either you or Explorer was doing something wrong.

MHT is a just mime encoding, the same that is used when sending images + html embedded within email. Nothing more, nothing less.

Ori Berger
Thursday, March 20, 2003

Another possible solution is offered by a software company in Australia:


These folks have developed an IE plug-in DLL that acts as a server, either displaying your HTML pages as-is or on the fly via ASP.  The plug-in is not free, but alternatively they allow you to download something called Flashbook that is simpler to use, employs the same technology, and costs nothing.

In both cases the HTML or ASP pages (as well as linked graphics, etc.) are contained in a single file.

I am using Flashbook for CBT to be deployed on CD-ROM.  I had planned earlier to do this with a so-called HTML compiler, but Flashbook is free and works much better (I do advise Javascript error-trapping, though).

Jim McCarty
Thursday, March 20, 2003

----"Either you or Explorer was doing something wrong."-----

Congratulations! That line hasn't  just made my day. It's made my month!

Stephen Jones
Thursday, March 20, 2003

*  Recent Topics

*  Fog Creek Home