LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

html to mht

I want to create a report file from my application.
Actually I get a .html file but it's associated to a folder with hundred of images.
I'm trying to convert this file to a .mht file (internet unique file). So I made an application which opens MS Word and then I save as .mht.However that unique file has its images linked to the same folder, I mean, it needs this images too.
If I make it with Intenet Explorer, it works but I don't find an active X for ie.
I don't know what to do.
0 Kudos
Message 1 of 17
(7,664 Views)
Are you still working on this? I would like to do the same thing and have the same problem.

Currently I use IE ActiveX for embedded browsing, printing and print preview functionality, but haven't been able to save reports to a single file, and haven't really looked into saving via ActiveX to an .mht file yet either.
Message 2 of 17
(7,573 Views)
I tried to make the conversion using activeX for MS Word but the new .mht file has the same problem because the images are links.
I tried with MS Excel too. I get a .mht unique file but images were deformed.
I gave it up but if you find a solution I agree you.
0 Kudos
Message 3 of 17
(7,561 Views)
There's ways out there, just not one that I've found for free yet 😞

http://www.chilkatsoft.com/mht-activex.asp -- $289 ActiveX, HTML -> MHT converter
Message 4 of 17
(7,549 Views)
I found that page yet but it's quite expensive.
I send you an append with my active X library for Word to convert html to mht but it doesn't run ok because it creates a mth file with links.
If you get it I agree you.
I said you that excel works but not quite good.
0 Kudos
Message 5 of 17
(7,537 Views)
I didn't know saving to an MHT was even an option in MSWord, is that only via ActiveX? I know it's not anywhere in the MSWord dialogs I've seen. I looked at your example but didn't try it--I'll take your word that it doesn't work right though.

What types of pictures are you saving in your report? JPEGs? GIFs? My reports are basically a regular HTML file and a couple JPG pictures. I'm considering writing my own MHTML converter since it's fairly straightforward... it wouldn't work for everything probably, but for a simple HTML report with pictures, it might not be so hard to drum up. I'll keep you posted.
Message 6 of 17
(7,530 Views)
Well... it is with pleasure that I get to announce (what I consider to be) some very good news...

...I have written a working beta version of an HTML -> MIME HTML (aka, MHTML, .MHT) converter in LabVIEW. And by working, I mean I feed it an HTML filename and path, and it encodes the report and collects all the pictures associated with it and compiles it all into an .MHT file that will open in IE.

At the moment I don't have the code with me to upload, but I'd like you to help me beta test it if you don't mind, once I get it posted.

Coming soon...
Message 7 of 17
(7,511 Views)
I found two programs that make that conversion but I can't run them under LabView.
I send you.
0 Kudos
Message 8 of 17
(7,500 Views)
0 Kudos
Message 9 of 17
(7,498 Views)
About MS Word XP. You can convert a html file into MHT file with option SAVE AS...
This is direct convesion but it has the problem I said you.
I'm using .PNG images because I get best accurancy and they are very small.
I discard .JPEG because it doesn't run OK with Waveforms.
0 Kudos
Message 10 of 17
(7,499 Views)