GroupDocsGists
10/24/2017 - 1:16 PM

PresentationData.cs

// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-.NET
// Do not extract column names from the first row, so that the first row to be treated as a data row.
// Limit the largest row index, so that only the first four data rows to be loaded.
DocumentTableOptions options = new DocumentTableOptions();
options.MaxRowIndex = 3;

// Use data of the _second_ table in the document.
DocumentTable table = new DocumentTable(presentationDataFile, 1, options);

// Check column count and names.
Debug.Assert(table.Columns.Count == 2);

// NOTE: Default column names are used, because we do not extract the names from the first row.
Debug.Assert(table.Columns[0].Name == "Column1");
Debug.Assert(table.Columns[1].Name == "Column2");
return table;