vPmtNumber value

Stimulsoft Reports.NET discussion
Post Reply
Quidnunc
Posts: 1
Joined: Mon Aug 24, 2026 8:12 am

vPmtNumber value

Post 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.
...
Lech Kulikowski
Posts: 7895
Joined: Tue Mar 20, 2018 5:34 am

Re: vPmtNumber value

Post 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.
Post Reply