2

I have a htm page in my disk (C:\pages\page1.htm).

This page link CSS and gif (C:\pages\img\img1.gif, c:\pages\css\css1.css).

How can I generate MHT file ?? Only using C# .NET managed.

Chris Owens
  • 5,076
  • 12
  • 61
  • 131
Alhambra Eidos
  • 1,515
  • 4
  • 21
  • 31

3 Answers3

0

Why do you need this? MHT is IE-only format of storing webpages.

However, if you will open one MHT, you will quickly get an idea how to create it by hands.

Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
0

MHT is basically a MIME file, which means it's structured very much like an e-mail. There are some global headers at the top (namely, the Content-Type, which also specifies the content boundary). Each file in the archive is separated by the content boundary, and has its own set of headers. See a MHT representation of this page - much of the content is self-explanatory.

Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
0

Windows 7 includes Recording Steps and generate mht file.

I thinks mht file can have several use. I need generate mht file (one mht file), for create several htm files, css , jpg, wmv...

thanks

Alhambra Eidos
  • 1,515
  • 4
  • 21
  • 31