Using Tables of Word Processing Documents as Data Sources
Leave feedback
NoteThe example reads the shop data described in The Business Layer.
Following classes are added in GroupDocs.Assembly.Data namespace:
- Define template and output report documents
- Assemble a document using the external document table as a data source
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
from groupdocs.assembly.data import DocumentTable, DocumentTableOptions
options = DocumentTableOptions()
options.max_row_index = 3
table = DocumentTable("managers.docx", 1, options)
assembler = DocumentAssembler()
assembler.assemble_document("importing-word-processing-table-into-presentation.pptx", "importing-word-processing-table-into-presentation-report.pptx", DataSourceInfo(table, "table"))
The following sample file is used in this example: importing-word-processing-table-into-presentation.pptx
The following sample file is used in this example: managers.docx
Binary file (PPTX, 34 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.