How to add Watermarks in reports generated by K2BTools


A common requirement in PDF reports is that the file should contain a watermark in the page's background. This watermark often contains the organization's logo.

How to implement this in K2BTools

This is a application-wide setting, that should be done in the report layout object. To add a watermark, follow these steps:

  1. Open the ReportWWLayout object.
  2. Add a new printblock, called "Watermark". Add the watermarked image to the printblock, and set the printblock's height to a value higher than the image's height.
    Watermark printblock

  3. In the Source part, add the following code:
    Report source

  4. Force the pattern application, and execute the application to see the results.