Convert WORD to XLT via C#

Convert WORD to XLT via C# without using Microsoft® Word or Microsoft® Excel

 

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

Convert WORD to XLT via C#

  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 XLT format using Save method and set XLT 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 WORD to XLT via C#

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

After you convert WORD to XLT, you can also encrypt and password protect your XLT 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 XLT 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

XLT What is XLT File Format?

Files with .xlt extension are template files created with Microsoft Excel which is a spreadsheet application which comes as part of Microsoft Office suite. Microsoft Office 97-2003 supported creating new XLT files as well as opening these. The latest version of Excel is still capable of opening this old format template files. Such a template file is used to quickly create new Excel files with default data and settings such as page formatting, font size, margins, charts, etc which can be further saved as new .xls files.

Read More