C# API to Convert DOC to ODS

Export DOC to ODS via C# without using Microsoft® Word or Microsoft® Excel

 

By using Aspose.Total for .NET you can include DOC to ODS 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 DOC to HTML. After that, by using Aspose.Cells for .NET Spreadsheet Programming API, you can convert HTML to ODS.

.NET API to Convert DOC to ODS

  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 ODS format using Save method and set ODS 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 DOC Document from Stream via C#

Aspose.Words for .NET also allows you to load DOC 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 ODS File via C#

While converting DOC to ODS, Aspose.Cells for .NET enables you to add custom properties in your ODS 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

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

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

ODS What is ODS File Format?

Files with .ods extension stand for OpenDocument Spreadsheet Document format that are editable by user. Data is stored inside ODF file into rows and columns. It is XML-based format and is one of the several subtypes in the Open Document Formats (ODF) family. The format is specified as part of the ODF 1.2 specifications published and maintained by OASIS. A number of applications on Windows as well as other operating systems can open ODS files for editing and manipulation including Microsoft Excel, NeoOffice and LibreOffice. ODS files can also be converted into other spreadsheet formats as well like XLS, XLSX and others by different applications.

Read More