🆕Test print with watermark
Download and print a test PDF to verify that the rendered report contains the desired data and looks as expected in your layout.
The test print contains a watermark. The proof print contains a watermark. The final, "real" print will not have a watermark.
Either toggle ON the option Test print in the Ninox UI, or alternatively use a custom script and the functions printRecord
or printAndSaveRecord
.
Option A: without a custom script (Ninox UI)
Using data from Example: invoice PDF, view the files below: a test print with a watermark and a final print without a watermark.
Option B: with a custom script
Works with printRecord and printAndSaveRecord.
The data
object can include the property _options
with testPrint
which overrides the default settings set by the print engine in the Ninox UI, i.e., if you previously toggled OFF Test print.
Example
Add a new layout element, here: a button.
Paste the script below in the formula editor.
Save changes.
Click or tap the button to run the script.
Result
A report (PDF file) is created and downloaded to your local files.
Last updated