DocumentTableSet
DocumentTableSet class
Provides access to data of multiple tables (or spreadsheets) located in an external document to be used while assembling a document. Also, enables to define parent-child relations for the document tables thus simplifying access to related data within template documents.
public class DocumentTableSet
Constructors
Name | Description |
---|---|
DocumentTableSet(Stream) | Creates a new instance of this class loading all tables from a document using default DocumentTableOptions . |
DocumentTableSet(string) | Creates a new instance of this class loading all tables from a document using default DocumentTableOptions . |
DocumentTableSet(Stream, IDocumentTableLoadHandler) | Creates a new instance of this class. |
DocumentTableSet(string, IDocumentTableLoadHandler) | Creates a new instance of this class. |
Properties
Name | Description |
---|---|
Relations { get; } | Gets the collection of parent-child relations defined for document tables of this set. |
Tables { get; } | Gets the collection of DocumentTable objects representing tables of this set. |
Remarks
For documents of Spreadsheet file formats, a DocumentTableSet
instance represents a set of sheets. For documents of other file formats, a DocumentTableSet
instance represents a set of tables.
To access data of the corresponding tables while assembling a document, pass an instance of this class as a data source to one of DocumentAssembler
.AssembleDocument overloads.
In template documents, a DocumentTableSet
instance should be treated in the same way as if it was a DataSet instance. See template syntax reference for more information.
See Also
- namespace GroupDocs.Assembly.Data
- assembly GroupDocs.Assembly