How to add a different watermark for follow-up pages
In ForNAV, you can add a different watermark per page using JavaScript. The syntax for this is:
CurrReport.AddWatermark(<pageno>,<blobfield>)
where pageno is interpreted as 0 = all, or 1… = page number.
The following steps describe how to add different watermarks to follow-up pages:
-
Add the watermark files to the ForNAV File Storage table.
-
Add the JavaScript records to get the data in the ForNAV report. Note that you must add the Data field to the Calculated Fields property.
-
Add the JavaScript to set the watermarks. In the report’s OnPreReport trigger, add the following lines:
CurrReport.AddWatermark(1, WMPage1.Data)
CurrReport.AddWatermark(0, WMFollow.Data)
-
If you add these watermarks to a standard ForNAV report you may need to disable the standard watermark ForNAV get from the ForNAV Setup table. That watermark is built into the report and will be merged into the new watermarks. To disable add this line of JavaScript to the OnPreReport trigger of each individual report.
CurrReport.Watermark.Image.Visible = false;
Latest news
Latest knowledge base articles
-
AI Assistant in the ForNAV Designer (beta)
-
Mapping from Business Central documents to ZUGFeRD and XRechnung
-
Using native Business Central ZUGFeRD generation with FORNAV reports
-
Repeater tables and barcodes in the ForNAV Template Editor
-
Controlling report language, format region, copies, and watermark with the Report Settings page
