ComOfficeby KDAN API Reference for Windows and Linux
Table of Contents

Enum DocumentFormat

Namespace
ComOfficeKit
Assembly
ComOfficeKit.dll

The file formats ComOffice reads and writes.

public enum DocumentFormat

Fields

Csv = 5

Comma-separated values (.csv), read as a workbook of one sheet.

Docx = 1

A Word document (.docx).

Odt = 7

OpenDocument text (.odt), opened and saved as a Word document. A save as .odt that would leave content out (comments, tracked changes, drawing shapes) throws ContentLossException unless AcceptContentLoss is set.

Pptx = 4

A PowerPoint deck (.pptx).

Tsv = 6

Tab-separated values (.tsv), read as a workbook of one sheet.

Xlsm = 3

An Excel workbook with macros (.xlsm). The macros are kept, never run.

Xlsx = 2

An Excel workbook (.xlsx).