How to use customer Variables to change property?

Stimulsoft Reports.NET discussion
Post Reply
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How to use customer Variables to change property?

Post by RickyHuang »

Hello

How to do can let my GroupHeaderBand1's property 『New Page Before』= my cusomter variables's value in report

ex:
a variable name is 『Block』

when Block's value = true

GroupHeaderBand1's Property 『New Page Before』 = true

when false

『New Page Before』 = false

thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to use customer Variables to change property?

Post by Alex K. »

Hello,

You can use following code in "Before Print" events on GroupHeaderBand:

Code: Select all

if (Block)
{
   GroupHeaderBand1.NewPageBefore = true;
}
else
{
   GroupHeaderBand1.NewPageBefore = false;
}
Thank you.
RickyHuang
Posts: 68
Joined: Tue Feb 09, 2010 3:16 am
Location: Taiwan

How to use customer Variables to change property?

Post by RickyHuang »

oh...great

thanks for your help...
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to use customer Variables to change property?

Post by Alex K. »

Hello,

We are always glad to help you!

Thank you.
Post Reply