ingenious
Watermark
The main modules > Projects > Projects How-to > Watermark

Using a special script type, watermarks can be automatically inserted into project documents when saving as and when printing.

The watermark is not visible while the document is being edited. The watermark is inserted in the background only after a printing or saving as command.

The watermark itself is saved as an image file in the program settings / logo.

 

Watermark logo saved in the program settings

Watermark logo saved in the program settings

  

A script for the text templates module determines which logo should be inserted as a watermark on which document.

 

Script GetWatermark
Copy Code
public override System.Drawing.Bitmap GetWatermark(DataSet dataSet)
{
    if(ingenious.net.DataSets.DSTools.getFieldValue<String>(DB.Project.document_template, dataSet.Tables[DB.Project].Rows[0]) == "Quotation_Demo")
    {
        System.Drawing.Image logo = Globals.getLogo("Watermark_Copy");
        System.Drawing.Bitmap _logo = new System.Drawing.Bitmap(logo);
        return _logo;
    }
    else
        return null;   
}

 

Inserted Watermark in a PDF

Inserted Watermark in a PDF