Start viewing 170+ popular document formats in your .NET applications using GroupDocs.Viewer for .NET APIs by adding a few lines of code. Developers can easily display PDF, Word Processing, Excel Spreadsheet, Presentation, Visio, Project, Outlook and many other popular document formats in HTML5, image or PDF modes. The document rendering is fast, identical to the original source file, and it does not require installing Microsoft Office or any other external libraries.
GroupDocs.Viewer makes it easy for .NET developers to add MHTML file viewing feature in their applications by implementing a few easy steps.
GroupDocs.Viewer for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.
// Instantiate viewer
using (Viewer viewer = new Viewer("sample.mhtml"))
{
// Set view options
ViewOptions viewOptions = new PngViewOptions();
// Convert file to PNG and check the output in the current directory
viewer.View(viewOptions);
}
Display MHTML file right now by visiting GroupDocs.Viewer Live Demos website.
The live demo has the following benefits
No need to download API
No need to write any code
Just upload the source file
Get download link to save the file
Files with MHTML extension represent a web page archive format that can be created by a number of different applications. The format is known as archive format because it saves the web HTML code and associated resources in a single file. These resources include anything linked to the webpage such as images, applets, animations, audio files and so on. MHTML files can be opened in a variety of applications such as Internet Explorer and Microsoft Word. Microsoft Windows uses MHTML file format for recording scenarios of problems observed during the usage of any application on Windows that raises issues. The MHTML file format encodes the page contents similar to specifications defined in message/rfc822 which is plain text email related specifications. The actual specifications of the format are as detailed by RFC 2557.
Read More About MHTML File FormatMulti format documents and images viewer API for .NET. View some of the popular file formats below without any external viewers.
(Microsoft Word Document)
(Microsoft Word Macro-Enabled Document)
(Microsoft Word Open XML Document)
(Microsoft Word Document Template)
(Microsoft Word Macro-Enabled Template)
(Word Open XML Document Template)
(Rich Text File Format)
(Plain Text File Format)
(Microsoft Excel Binary File Format)
(Microsoft Excel Open XML Spreadsheet)
(Microsoft Excel Macro-Enabled Spreadsheet)
(Microsoft Excel Binary Spreadsheet File)
(Microsoft Excel Open XML Template)
(Tab Separated Values File)
(Microsoft Excel Macro-Enabled Add-In)
(Comma Separated Values File)
(PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(PowerPoint Open XML Presentation)
(PowerPoint Open XML Slide Show)
(Microsoft PowerPoint Open XML Template)
(Microsoft PowerPoint Template)
(Microsoft PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(Adobe Portable Document Format)
(Open XML Paper Specification)
(LaTeX Source Document)
(Open Document Spreadsheet)
(OpenDocument Presentation File Format)
(Origin Graph Template)
(Open Document Text)
(Open Document Template)
(Microsoft Visio 2003-2010 XML Drawing)
(Tagged Image File Format)
(JPEG Image)
(Portable Network Graphic)
(Graphical Interchange Format File)
(Bitmap File Format)
(Microsoft Icon File)
(Adobe Photoshop Document)
(Raster Web Image File Format)
(Scalable Vector Graphics File)
(JPEG 2000 Core Image File)
(Microsoft Project Document)
(Microsoft Project Template)
(Hyper Text Markup Language)
(MIME Encapsulation of Aggregate HTML)
(Microsoft Outlook E-mail Message)
(E-mail Message)
(Microsoft OneNote)
(Windows Metafile)
(Windows Enhanced Metafile)
(Adobe Photoshop Document)
(Microsoft Visio 2003-2010 Drawing)
(Microsoft Visio Drawing)
(Microsoft Visio 2003-2010 Stencil)
(Microsoft Visio 2003-2010 XML Drawing)
(Microsoft Visio 2010 Web Drawing)
(Digital E-Book File Format)