Page 1 of 1

indentation question

Posted: Fri Jul 30, 2010 3:03 am
by KevinLi
Hi,

just got a quick question in regards to indenation. i have a databand that got a field need to be indented based on another field (integer) in the report. just wondering what are the ways to implement it, and is it possible to achieve it by just using the report designer.

below is what the report should look like
Item Name Description Quantity
--------------------------------------------------------------
Item 1 AAAAA 1
Item 2 BBBB 7
Item 3 CCCCC 0
Item 4 DDDD 4

Thanks,
Kevin

indentation question

Posted: Fri Jul 30, 2010 5:24 am
by Alex K.
Hello,

Sorry, but looking at your sample, it is not absolutely clear what to do.
But, if we understood you correctly, you may use the "Before Print" event of a component.
For example, for setting indent of the TextBox2 component on the base of the 1st value of the DataSource you may use the following code:
TextBox2.Left = TextBox1.Width + DataSourse.Column1;

Thank you.

indentation question

Posted: Mon Aug 02, 2010 12:33 am
by KevinLi
Hi, somehow the sample lost its formatting. but anyway, i've worked it out based on your suggestion. thanks a lot for your help!

indentation question

Posted: Mon Aug 02, 2010 6:44 am
by Andrew
Ok! Have a nice day!!!