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.
vPmtNumber value
vPmtNumber value
...
-
Lech Kulikowski
- Posts: 7895
- Joined: Tue Mar 20, 2018 5:34 am
Re: vPmtNumber value
Hello,
Use the Before Print event of Panel1:
Also, you can use the Conditions option for the Panel component.
Thank you.
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;Thank you.