0
Example: invoice PDF
Use the sample data below to understand how to get from a document (= template, here: DOCX
in Microsoft Word) to a rendered report (= result, PDF
in Ninox).
Understand the example
- Create a database from the
NINOX
backup file from the sample data below. - Once the database is created, open the Invoice table, click any record, then click the print icon.
- View the 2 layouts:
- en_invoice_template refer to Option A: without a custom script
- en_invoice_template_without_JSON refer to Option B: with a custom script
- Open Microsoft Word or another text editor to view the MS Word template A (Option A) and B (Option B).
- Depending on which template is used, you either work with or without a custom script.
- In Ninox, select a layout, then click the print icon. Select This record to download the final result, a rendered
PDF
report.- Both MS Word templates A and B result in the same report.
For both layouts, we use a global function to correctly display currency.
Sample data
What | File format | EN | DE | Notes |
---|---|---|---|---|
MS Word template A | DOCX | Link | Link | No custom script needed, refer to Option A: without a custom script |
MS Word template B | DOCX | Link | Link | Requires custom script, refer to Option B: with a custom script |
Rendered report | Link | Link | Watermark on PDF only appears in this demo | |
Database | NINOX | Link | Link | |
Custom script | JSON | Link | Link | |
Global function | JSON | Link | Link |
Reply
Content aside
Related Articles