Table Features Supported on OpenDocument Import

Table

Feature Supported Comment See Also
Nested Tables Yes    
Right To Left Tables Yes   - Table.Bidi
Table Style N/A    
Conditional Formatting Style N/A    
Table Alignment Yes   - Table.Alignment
Table Indent Yes   - Table.LeftIndent
Allow AutoFit Yes   - Table.AllowAutoFit
Default Cell Margins Yes  

- Table.LeftPadding

- Table.RightPadding

- Table.BottomPadding

- Table.TopPadding

Default Cell Spacing N/A    
Preferred Table Width Yes Preferred width on the table can be set to absolute (points), relative (percent) or auto setting. - Table.PreferredWidth
Table Shading Yes   - Table.SetShading
Hidden N/A    

Floating Tables

Floating tables are supported during import and export. However there is currently no API to access or modify the floating position of a table.

Floating tables are imported as inline tables with a left indent.

Feature Supported Comment See Also
Floating Tables Planned    

Table Borders

Table borders are stored in the rows of the table. This mimics the structure of an OOXML document.

If you try to set borders or shading on a table without any rows then an exception will be thrown. Add at least one row first.

See the following links in the documentation for further information:

  • Table.SetBorders
  • Table.ClearBorders
  • RowFormat.Borders
Feature Supported Comment See Also
Table Borders Yes    

Rows

Feature Supported Comment See Also
Allow Break Across Pages Yes  

- Keeping Tables and Rows from Breaking across Pages

- RowFormat.AllowBreakAcrossPages

Repeat as Header Row Yes  

- Specifying Rows to Repeat on Subsequent Pages as Header Rows

- RowFormat.HeadingFormat

Height Yes   - RowFormat.Height
Height Rule Yes   - RowFormat.HeightRule

Cells

Feature Supported Comment See Also
Cell Margins Yes  

- CellFormat.TopPadding

- CellFormat.BottomPadding

- CellFormat.LeftPadding

- CellFormat.RightPadding

Borders Yes Diagonal borders are not saved to ODT.

Dashed, shadow and triple lines appear differently when saved to ODT.
- CellFormat.Borders
Shading Yes Textured fills are saved as solid fills to ODT. - CellFormat.Shading
Wrap Text Yes   - CellFormat.WrapText
Fit Text Yes   - CellFormat.FitText
Preferred Width Yes   - CellFormat.PreferredWidth
Merged Horizontally Yes  

- Working with Merged Cells

- CellFormat.HorizontalMerge

Merged Vertically Yes   - CellFormat.VerticalMerge
Vertical Alignment Yes   - CellFormat.VerticalAlignment
Text Direction Yes   - CellFormat.Orientation