Page 1 of 1

Regarding change of text position based on criteria

Posted: Fri Dec 17, 2010 8:03 pm
by Naveen Aggarwal
There are two major requirements while designing a report.
1) Actual Text size is not known until runtime.
2) Some columns may not have any data

So my query is

1) Is it possible that text components placed on a band re-size themselves at the runtime (kind of autosize) ?
2) Is it possible to change the text position if a column has no data at runtime. Say for example I have 4 columns to be printed like name, position, class, section.
I place 4 text components on the band. Will it be possible to change the position of class and section if position column has no data.

I came across a topic "change the text position based on criteria" in the forum and tried to do as directed but was not able to do.
I would be highly grateful if you can provide a working sample or step by step tutorial for the same !

Thanks in advance

Naveen

Regarding change of text position based on criteria

Posted: Fri Dec 17, 2010 8:17 pm
by Naveen Aggarwal
I came across one more topic in the forum "Can I hide data if not available and have its placeholder shrink?"
Still the question remains "how to do it practically" ?

Regarding change of text position based on criteria

Posted: Sat Dec 18, 2010 4:34 am
by Jan
Hello Naveen,
1) Is it possible that text components placed on a band re-size themselves at the runtime (kind of autosize) ?
Yes you can. Please check CabGrow, CanShrink and AutoSize properties of text component.
2) Is it possible to change the text position if a column has no data at runtime. Say for example I have 4 columns to be printed like name, position, class, section.
I place 4 text components on the band. Will it be possible to change the position of class and section if position column has no data.

I came across a topic "change the text position based on criteria" in the forum and tried to do as directed but was not able to do.
I would be highly grateful if you can provide a working sample or step by step tutorial for the same !
You can use following steps if I right understand you:

1. Add condition to component which will be disable it depend on condition. You can do this with help of Conditions property. Please check attached image.
2. Set Dock proeprty of all components which placed on band to Left.

Also you can use BeforePrintEvent of band to change position of components. Please check second attached image.

Thank you.

Regarding change of text position based on criteria

Posted: Sun Dec 19, 2010 12:26 am
by Naveen Aggarwal
Thanks a lot sir !

I will try and get back in case there is any difficulty !!

Regarding change of text position based on criteria

Posted: Sun Dec 19, 2010 1:31 am
by Andrew
Ok!

Thank you.

Regarding change of text position based on criteria

Posted: Sun Dec 19, 2010 6:55 am
by Naveen Aggarwal
I tried but it didn't work !
Kindly refer to the posting Can I hide data if not available and have its placeholder shrink dated december 21, 2006 by jonmoores !
I have got the identical requirement !

Thanks & Regards !!

Regarding change of text position based on criteria

Posted: Mon Dec 20, 2010 1:01 am
by Alex K.
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.