C# API to Convert MOBI to XLSM

Export MOBI to XLSM via C# without using Microsoft® Word or Microsoft® Excel

 

By using Aspose.Total for .NET you can include MOBI to XLSM conversion feature within any .NET, C#, ASP.NET and VB.NET application in two simple steps. Firstly, by using Aspose.Words for .NET , you can export MOBI to HTML. After that, by using Aspose.Cells for .NET Spreadsheet Programming API, you can convert HTML to XLSM.

.NET API to Convert MOBI to XLSM

  1. Open MOBI file using Document class
  2. Convert MOBI to HTML by using Save method
  3. Load HTML document by using Workbook class
  4. Save the document to XLSM format using Save method and set XLSM as SaveFormat

Get Started with .NET File Automation APIs

Install from command line as nuget install Aspose.Total or via Package Manager Console of Visual Studio with Install-Package Aspose.Total.

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

Load MOBI Document from Stream via C#

Aspose.Words for .NET also allows you to load MOBI document via stream. To open a document from a stream, simply pass a stream object that contains the document into the Document constructor. The following code example shows how to open a document from a stream:

Add Custom Properties in XLSM File via C#

While converting MOBI to XLSM, Aspose.Cells for .NET enables you to add custom properties in your XLSM documents. In order to add a custom property, you can use Add method for the CustomDocumentPropertyCollection class. The Add method adds the property to the Excel file and returns a reference for the new document property as an Aspose.Cells.Properties.DocumentProperty object.

Other Conversion Options

MOBI TO FODS (OpenDocument Flat XML Spreadsheet)
MOBI TO XLSX (Open XML Workbook)
MOBI TO XLAM (Excel Macro-Enabled Add-In)
MOBI TO XLTX (Excel Template)
MOBI TO XLT (Excel 97 - 2003 Template)
MOBI TO SXC (StarOffice Calc Spreadsheet)
MOBI TO XLTM (Excel Macro-Enabled Template)
MOBI TO TSV (Tab Seperated Values)
MOBI TO XLS (Microsoft Excel Spreadsheet (Legacy))
MOBI TO ODS (OpenDocument Spreadsheet)
MOBI TO XLSB (Excel Binary Workbook)
MOBI TO DIF (Data Interchange Format)
MOBI TO CSV (Comma Seperated Values)

MOBI What is MOBI File Format?

The MOBI file format is one of the most widely used ebook file formats. The format is an enhancement to the old OEB (Open Ebook Format) format and was used as the proprietary format for Mobipocket Reader. Like EPUB, it is supported by almost all modern e-readers specifically by mobile devices with low bandwidth. The format can be converted to several other formats such as PDF, EPUB, and several other formats using publicly available software applications such as the Kindle app. There are several companies that offer free MOBI books such as Project Gutenberg, Feedbooks, and Open Library.

Read More

XLSM What is XLSM File Format?

Files with XLSM extension is a type of Spreadsheet files that support Macros. From application point of view, a Macro is set of instructions that are used for automating processes. A macro is used to record the steps that are performed repeatedly and facilitates performing the actions by running the macro again. Macros are programmed with Microsoft’s Visual Basic for Applications (VBA) from within the Excel Workbook using the Visual Basic Editor and can be run/debug directly from there.

Read More