Page 1 of 1

vPmtNumber value

Posted: Mon Oct 19, 2026 8:23 am
by Quidnunc
Hello,
I have a report that has a variable called vPmtNumber that is loaded at the beginning of the report. At the end of the report is a panel called Panel1.
If vPmtNumber is greater than 15 I would like Panel1 to have a border on all 4 sides.
If vPmtNumber is 15 or less I would like Panel1 to have a border on the top only.
What code will accomplish this and where should it be put?
Thank you in advance.

Re: vPmtNumber value

Posted: Mon Oct 19, 2026 8:56 pm
by Lech Kulikowski
Hello,

Use the Before Print event of Panel1:

Code: Select all

if (vPmtNumber > 15)
    Panel1.Border.Side = Stimulsoft.Base.Drawing.StiBorderSides.All;
else
    Panel1.Border.Side = Stimulsoft.Base.Drawing.StiBorderSides.Top;
Also, you can use the Conditions option for the Panel component.

Thank you.