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. All roads lead to Rome. 😉
Note: For both layouts, we use a global function to correctly display currency.
Sample data
rendered report
PDF
watermark on PDF only appears in this demo
database
NINOX
custom script
JSON
Last updated