Page 1 of 1

How to use customer Variables to change property?

Posted: Wed Aug 18, 2010 4:08 am
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

How to use customer Variables to change property?

Posted: Wed Aug 18, 2010 4:27 am
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.

How to use customer Variables to change property?

Posted: Wed Aug 18, 2010 5:19 am
by RickyHuang
oh...great

thanks for your help...

How to use customer Variables to change property?

Posted: Wed Aug 18, 2010 5:27 am
by Alex K.
Hello,

We are always glad to help you!

Thank you.