Test print with watermark
Last updated
Last updated
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
.
Using data from Example: invoice PDF, view the files below: a test print with a watermark and a final print without a watermark.
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.
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.
A report (PDF file) is created and downloaded to your local files.