Watermark Question

Hello everyone,

I have set up a watermark text in my report, but I can't get it to only display when needed.

I have an If event that does trigger, but the watermark enabled property doesn't change, so I wanted to see if anyone that has worked with Watermark before knows of any quirks with it?

When the if fires true, I have Page1.Watermark.Enabled = true.

When the if fires false, I leave the watermark disabled.

But the enabled state never changes. Has anyone else experienced this?

I appreciate the help!

I'm simply trying to show a "PAID" watermark on an invoice if a text field is a $ 0 value so this should be pretty simple.

Thanks Again!

Comments

  • Hi, I have the same question and don't find updated doc or solution. Months are gone since you post your question, did your receive and answer or found a solution that could help me? Thanks in advance @m_lyons 😕

  • Hi DeepDive,

    Sorry, I just saw your message. If you're still working on this, I had to create a png and add it to the project resources.

    In the code building the form I have:

    Image PaidWatermark = Properties.Resources.ReportWaterMarkPaid;

    report.SetParameterValue("paid", PaidWatermark);


    In the Report Code I have:

      private void Page1_StartPage(object sender, EventArgs e)

      {

       if (((String)Report.GetColumnValue("Invoice.AmountRemainingString")) == "$0.00")

       {

        //BalanceTB.Text = "$ 0.00";

        Page1.Watermark.Enabled = true;

       }

       else

       {

        //BalanceTB.Text = "$ 0.00";

        Page1.Watermark.Enabled = false;

       }

      }


    Hope that helps!

  • Hello!

    To resolve your issue, place a text/graphic object labelled ‘PAID’ on the OverlayBand with the following VisibleExpression:

    OverlayBand -> TextObject (“PAID”, semi-transparent grey) -> VisibleExpression: [Invoice.AmountRemainingString] == “$0.00”

    The OverlayBand is drawn on top of each page as soon as the current invoice is displayed and instantly applies the condition without any delay per page.

This discussion has been closed.