Convert WORD to XLSM via Java

On Premise Java API to convert WORD to XLSM without using Microsoft® Word or Microsoft® Excel

 

You can converting WORD to XLSM via Aspose.Total for Java is a simple two step process. By using feature-rich, document manipulation and conversion API Aspose.Words for Java , you can export WORD to HTML. After that, by using Aspose.Cells for Java , you can convert HTML to XLSM.

Convert WORD to XLSM via Java

  1. Open WORD file using Document class
  2. Convert WORD to HTML by using Save method
  3. Load HTML document by using Workbook class
  4. Save the document to XLSM format using Save method

Get Started with Java File Automation APIs

You can easily use Aspose.Total for Java directly from a Maven based project and include libraries in your pom.xml.

Alternatively, you can get a ZIP file from downloads .

Convert Protected WORD to XLSM via Java

Using the API, you can also open the password-protected document. If your input WORD document is password protected, you cannot convert it to XLSM 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 WORD to Protected XLSM file via Java

After you convert WORD to XLSM, you can also encrypt and password protect your XLSM 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 XLSM by using the Password property of WorkbookSettings class.

Other Conversion Options

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

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

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