indentation question

Stimulsoft Reports.NET discussion
Post Reply
KevinLi
Posts: 2
Joined: Fri Jul 30, 2010 2:24 am

indentation question

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

indentation question

Post 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.
KevinLi
Posts: 2
Joined: Fri Jul 30, 2010 2:24 am

indentation question

Post 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!
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

indentation question

Post by Andrew »

Ok! Have a nice day!!!
Post Reply