Articles in this section
Category / Section

How to load the MHTML files in the WinForms HTMLUIControl?

1 min read

MHTML files

MHTML enables the user to send and receive Web pages and other HTML documents using e-mail programs. MHTML enables the user to embed images directly into the body of the e-mail messages rather than attaching them to the message.

MHTML uses MIME which provide facilities to allow multiple objects in a single Internet Email message, to represent the formatted multi-font text messages, to represent the non-textual material such as images, etc.

HTMLUI supports the usage of MHTML files by supporting MIME. The HTMLUI control allows the user to load the MHTML files from the user's drive with the help of the LoadHTML() method.

Note:

HTMLUI supports MHTML documents from the version 4.1.

C#

//HTMLUI supports loading MHTML from file. Other overloads are not supported.
this.htmluiControl.LoadHTML(@"C:\MyProjects\LoadMHT\mhtFile.mht");

 

VB

'HTMLUI supports loading MHTML from file. Other overloads are not supported.
Me.htmluiControl.LoadHTML("C:\MyProjects\LoadMHT\mhtFile.mht")

 

Reference link: https://help.syncfusion.com/windowsforms/html-viewer/mht-formats

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied