__init__ constructor

init

Initializes a new DocumentTableSet loading all tables from a document using default DocumentTableOptions.

def __init__(self, document_path):
    ...
Parameter Type Description
document_path str The path to a document containing tables to be accessed.

init

Initializes a new DocumentTableSet.

def __init__(self, document_path, load_handler):
    ...
Parameter Type Description
document_path str The path to a document containing tables to be accessed.
load_handler IDocumentTableLoadHandler An implementation controlling how document tables are loaded.

Example

from groupdocs.assembly.data import DocumentTableSet, DocumentTableOptions

def load_table(args):
    options = DocumentTableOptions()
    options.first_row_contains_column_names = True
    args.options = options

tables = DocumentTableSet("multiple-tables.docx", load_table)

init

Initializes a new DocumentTableSet loading all tables from a document using default DocumentTableOptions.

def __init__(self, document_stream):
    ...
Parameter Type Description
document_stream io.RawIOBase The stream containing a document with tables to be accessed.

init

Initializes a new DocumentTableSet instance.

def __init__(self, document_stream, load_handler):
    ...
Parameter Type Description
document_stream io.RawIOBase The stream containing a document with tables to be accessed.
load_handler IDocumentTableLoadHandler An implementation controlling how document tables are loaded.

See Also