Barcode Image Generation in Word Processing Document
Leave feedback
NoteThe example reads the shop data described in The Business Layer.
- Add a textbox to your template at the place where you want a barcode image to be inserted.
- Add the following syntax:
<<barcode [customer.Barcode] -codabar>>
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("customer.json", encoding="utf-8") as f:
customer = json.load(f)
assembler = DocumentAssembler()
assembler.assemble_document("barcode.docx", "barcode-report.docx", DataSourceInfo(customer, "customer"))
The following sample file is used in this example: barcode.docx
The following sample file is used in this example: customer.json
Binary file (DOCX, 12 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.