Exporting to mht file?

Author Message
jcloud 03/29/2006 07:01 am
Hi. I`m trying to export to mht. I get the mht file but I can`t seem to be able to browse it in IE? Any ideas?
Oleg Chernavin 03/29/2006 07:01 am
Usually you just have to double-click the MHT file in Windows Explorer and it should be opened automatially. Does this help?

Best regards,
Oleg Chernavin
MetaProducts corp.

jcloud 03/29/2006 07:01 am
> Usually you just have to double-click the MHT file in Windows Explorer and it should be opened automatially. Does this help?
>
> Best regards,
> Oleg Chernavin
> MetaProducts corp.
>
>
Yes, I`ve tried that. IE opens but I get a white blank page. I tried with three different projects. One project printed out a CSS script on the screen.
Oleg Chernavin 03/29/2006 07:01 am
Can you please tell me, how to reproduce it? A page address example.

Thank you!

Oleg.
jcloud 03/29/2006 07:01 am
> Can you please tell me, how to reproduce it? A page address example.
>
> Thank you!
>
> Oleg.

OK, I`ve managed to get this to work, sort of anyway. Seems the "Create Contents file" checkbox must be checked!!!

There are some problems though.

1. Javascript and Flash don`t seem to do well in an mht archive?

2. Can`t put all downloaded projects into one mht file. And even when you export each project seperately, with different mht file, the contents file is appended. But only the last project added will read the mht file. The earlier files all point to the actual websites. I have to create a folder for each project so each project gets its own mht and contents file then it works.

3. Some of the links don`t translate well in mht file. When browsing downloaded project links are ok, but when exported some links point back to actual URLs...

e.g. F:\www.pacificnet.net\~johnr\default.htm

On this page is a link to file:///F:/www.pacificnet.net/~johnr/aesop which is fine offline. But when browing the exported mht file for this project, this link becomes http://www.pacificnet.net/~johnr/aesop

On the same page other links translate OK, as long as they remain in the same directory...

I`m still fiddling to find out more about the mht export feature. Anyone else used this feature?

Thanks Oleg.

Oleg Chernavin 03/29/2006 07:01 am
Thank you. I just updated the MHT export code, so it should now work much better. Please test the updated version:

http://www.metaproducts.com/download/betas/oep1140.zip

Oleg.
Dre 03/29/2006 07:01 am
> Thank you. I just updated the MHT export code, so it should now work much better. Please test the updated version:
> > http://www.metaproducts.com/download/betas/oep1140.zip
> > Oleg.

OK, but what if you do if your MHT works, but on some computers it doesn`t. My new computer, with a fresh install of XP and IE, produces a blank screen when I try to open the MHT. View source shows the code, but the IE screen stays blank.

Please don`t give me a user style response, like "dbl-click on the icon". I`ve got very many years of dev experience, so I`m rating this as an IE anomaly. Thus I`m looking for someone who`s seen this problem and resolved it somehow.
Oleg Chernavin 03/29/2006 07:01 am
Can you tell me, how I could reproduce this? A URL of a page that results in such MHT?

Oleg.
Dre 03/29/2006 07:01 am
> Can you tell me, how I could reproduce this? A URL of a page that results in such MHT?
> > Oleg.

I don`t know what has to break in IE, for one to get the same errors as I am getting.

However, what I can tell you is that the Web Archive format MHT is a third party developed standard, which is generally available on MS IE 6 (maybe 5 too). For some reason Firefox shunned it, don`t know why, because it wasnt even MS that developed it.

Anyway, for those who don`t know... Open a web page... click save as (in IE) pick MHT and viola ... you have a single file web archive of any page (except those with funnies like weird JS, activeX, most embedded stuff, etc.)

To get back to my issue.... I created a new MHT with no problem on the same PC that`s giving me this hassles... and it even opens on the same PC. But I still can`t figure out why my old MHTs would open everywhere else except this same dang PC. But that is MS for you.

Don`t bother responding, I`m already onto something else. It is pointless trying to sort out MS bugs, because they`re always so senseless, there`s never a log to check and when something like IE corrupts, you most often end up having to reinstall the whole machine. ... yep I`m a Linux fan :-)
Oleg Chernavin 03/29/2006 07:01 am
Well, I myself don`t like MHT too much. A better choice would be to export to CHM (HTML Help).

Oleg.