Changing Automatically Detected Types of DocumentTable Columns

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.

Data Source Document

Template

Changing Document Table Column Type

Note
The 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)

Download full output

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.