Convert POWERPOINT to MHTML via C#

.NET API for POWERPOINT to MHTML conversion without using Microsoft® Excel or PowerPoint

 

By using Aspose.Total for .NET you can convert POWERPOINT file to MHTML within any .NET, C#, ASP.NET and VB.NET application in two simple steps. Firstly, by using Aspose.Slides for .NET , you can export POWERPOINT to HTML. After that, by using Aspose.Cells for .NET Spreadsheet Programming API, you can convert HTML to MHTML.

How to Convert POWERPOINT to MHTML via C#

  1. Open POWERPOINT file using Presentation class
  2. Export POWERPOINT as HTML by using Save method
  3. Load HTML document by using Workbook class
  4. Save the document to MHTML using Save method

POWERPOINT File Conversion in C#

For POWERPOINT file to MHTML Conversion in C#, please install the API from the command line as nuget install Aspose.Total or via Package Manager Console of Visual Studio.

Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .

Convert Protected POWERPOINT to MHTML via C#

While converting POWERPOINT file to MHTML, if your input POWERPOINT document is password protected you cannot convert it to MHTML without decrypting the document. When your document is password protected, it means it enforces certain restrictions on the presentation. To remove the restrictions, the password has to be entered. A password-protected presentation is considered a locked presentation. The API allows you to open the encrypted document by passing the correct password in a LoadOptions object.

Convert POWERPOINT to MHTML with Watermark via C#

While converting POWERPOINT file to MHTML, you can also add watermark to your output MHTML file format. In order to add a watermark, you can create a new Workbook object and open the converted HTML document, select Worksheet via its index, create a Shape and use its AddTextEffect function. After that you can save your HTML document as MHTML with Watermark.

Other Conversion Options

POWERPOINT TO FODS (OpenDocument Flat XML Spreadsheet)
POWERPOINT TO ODS (OpenDocument Spreadsheet)
POWERPOINT TO XLAM (Excel Macro-Enabled Add-In)
POWERPOINT TO XLSX (Open XML Workbook)
POWERPOINT TO XLSM (Macro-enabled Spreadsheet)
POWERPOINT TO SXC (StarOffice Calc Spreadsheet)
POWERPOINT TO XLSB (Excel Binary Workbook)
POWERPOINT TO DIF (Data Interchange Format)
POWERPOINT TO CSV (Comma Seperated Values)
POWERPOINT TO XLTX (Excel Template)
POWERPOINT TO XLS (Microsoft Excel Spreadsheet (Legacy))
POWERPOINT TO TSV (Tab Seperated Values)
POWERPOINT TO XLTM (Excel Macro-Enabled Template)
POWERPOINT TO XLT (Excel 97 - 2003 Template)
POWERPOINT TO DOC (Microsoft Word Binary Format)
POWERPOINT TO DOCX (Office 2007+ Word Document)
POWERPOINT TO DOCM (Microsoft Word 2007 Marco File)
POWERPOINT TO DOT (Microsoft Word Template Files)
POWERPOINT TO DOTM (Microsoft Word 2007+ Template File)
POWERPOINT TO DOTX (Microsoft Word Template File )
POWERPOINT TO ODT (OpenDocument Text File Format)
POWERPOINT TO OTT (OpenDocument Standard Format)
POWERPOINT TO RTF (Rich Text Format)
POWERPOINT TO WORDML (Microsoft Word 2003 WordprocessingML)