Previous Topic

Next Topic

IN Tutorial: Add Watermarked Second Page to Invoice

This tutorial shows you how to add a watermarked second copy of an invoice using the Invoice Designer. The second copy can be marked and used as a Head Office copy.

To open an invoice design, go to Navigator > Setup > Invoicing System > Invoice Designer.

Click Open (Ctrl+O) and select an Invoice Document Design file, such as INInvoice.pfd.

Add a Watermark

  1. To add a band for the watermark, click Add Band (F4). A band will be inserted at the bottom of the document.
  2. Click the band, the properties for the band will be displayed on the left. Change the BandType property from btDetail to btWatermark. This tells the Designer to print this band as a watermark.
  3. Add a label to the watermark band. Click Add new label, then click in the watermark band.
  4. Double-click the label. Type the watermark text, for example, Office Copy. Click Save (F9).
  5. You can rotate the text using the Angle property. For example, enter 45 to rotate the label 45°.
  6. You can change the font and font size using the Font property. For example, to print a large watermark, click Open Font Dialog (F2) on the Font, then change the font Size to 72. You will need to expand the band height, by dragging the band border.
  7. You can also change the font colour using the Font property. For example, to print the watermark in a lighter colour, click Open Font Dialog (F2) on the Font, then change the font colour to Silver. Click OK.
  8. Click Execute Report (Ctrl+R) to check the watermark is in the correct place. Adjust the size of the Watermark Band and the position of the Label to display correctly.

Add a Second Page

  1. In the lookup above the Properties, select the Report (the first item in the Lookup).
  2. Change the PartCount property from 1 to 2. This tells the designer to print 2 copies of the document.
  3. Click the Watermark Band.
  4. In the BeforeBand Property, click (Code) CodeEdit Open Code Editor (F2). A code window opens.
  5. Type the following code:

      If partnumber = 2 Then
        self.print=true
      Else
        self.print = False
      End If

    This tells the Invoice Designer to only print the Watermark Band if the page is the second copy. Click Save (F9).

  6. Click Execute Report (Ctrl+R). Each invoice will print twice, with a watermark on the second copy.
  7. Go to File > Save As, and save the document with a new name to ensure it won't be overwritten when a system update is performed.

See Also

IN Invoice Designer

Book Contents

Book Index