Changing Automatically Detected Types of DocumentTable Columns
Leave feedback
API provides the ability to change automatically detected types of DocumentTable columns. The Type property setter has been added to the GroupDocs.Assembly.Data.DocumentTableColumn class.
Moreover, The Relations property of the GroupDocs.Assembly.Data.DocumentTableSet class has been added.
NoteThe example reads the shop data described in The Business Layer.
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
from groupdocs.assembly.data import DocumentTable, DocumentTableOptions
options = DocumentTableOptions()
options.first_row_contains_column_names = True
table = DocumentTable("managers.docx", 1, options)
table.columns["Total_Contract_Price"].type = float
assembler = DocumentAssembler()
assembler.assemble_document("changed-column-type.pptx", "changed-column-type-report.pptx", DataSourceInfo(table, "Managers"))
The following sample file is used in this example: changed-column-type.pptx
The following sample file is used in this example: managers.docx
Binary file (PPTX, 36 KB)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.