Working with Template Syntax Formatting
Leave feedback
NoteThe example reads the shop data described in The Business Layer.
Learn more about string and numeric formats here.
| ||||||||||
TipFor detailed technical information about syntax, expressions and report generation by the engine, please visit: Working with GroupDocs.Assembly Engine
Get the template from here.
import json
from groupdocs.assembly import DataSourceInfo, DocumentAssembler
with open("orders.json", encoding="utf-8") as f:
orders = json.load(f)
assembler = DocumentAssembler()
assembler.assemble_document("numeric-format.odt", "numeric-format-report.odt", DataSourceInfo(orders, "orders"))
The following sample file is used in this example: numeric-format.odt
The following sample file is used in this example: orders.json
Binary file (ODT, 6 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.