Convert DOC to XLSB via C#

Convert DOC to XLSB via C# without using Microsoft® Word or Microsoft® Excel

 

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

Convert DOC to XLSB via C#

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

Get Started with .NET File Automation APIs

Install 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 DOC to XLSB via C#

Using the API, you can also open the password-protected document. If your input DOC document is password protected, you cannot convert it to XLSB without using the password. The API allows you to open the encrypted document by passing the correct password in a LoadOptions object. The following code example shows how to try opening an encrypted document with a password:

Convert DOC to Protected XLSB file via C#

After you convert DOC to XLSB, you can also encrypt and password protect your XLSB documents. In order to encrypt your document, open it using Workbook class and specify XOR Encryption Type and Strong Encryption type (RC4, Microsoft Strong Cryptographic Provider) encryption by using the SetEncryptionOptions method. You can also set a password to your XLSB by using the Password property of WorkbookSettings class.

Other Conversion Options

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

DOC What is DOC File Format?

Files with .doc extension represent documents generated by Microsoft Word or other word processing documents in binary file format. The extension was initially used for plain text documentation on several different operating systems. It can contain several different types of data such as images, formatted as well as plain text, graphs, charts, embedded objects, links, pages, page formatting, print settings and a lot others.

Read More

XLSB What is XLSB File Format?

XLSB file format specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content. The content can include unstructured or semi-structured tables of numbers, text, or both numbers and text, formulas, external data connections, charts and images. Unlike XLSX (which is based on Open XML file format), the XLSB represents binary Excel workbook file. XLSB files can be read and written to faster which makes them useful for working with large files. XLSB is seldom used to store workbooks as XLSX (and previously XLS) are the most common user selected file formats for saving workbooks. It can be opened by Microsoft Office 2007 and above.

Read More