Text components grow to height
Text components grow to height
I add sample report to show what I want to achieve and where is the problem.
I have three Text components on panel. I have a lot of this panels (with 3 Text component each) - in sample report I put only 3 panels.
I want all Text components in one row to have the same height.
To test my idea I was changing Font Size, to have different component height. And... it sometimes work, sometimes not and I have no idea why. Maybe I am doing something wrong, but I do not know when exactly is calculated component height.
Thank you in advance for your help.
I have three Text components on panel. I have a lot of this panels (with 3 Text component each) - in sample report I put only 3 panels.
I want all Text components in one row to have the same height.
To test my idea I was changing Font Size, to have different component height. And... it sometimes work, sometimes not and I have no idea why. Maybe I am doing something wrong, but I do not know when exactly is calculated component height.
Thank you in advance for your help.
- Attachments
-
- Report.mrt
- (19.13 KiB) Downloaded 448 times
Re: Text components grow to height
Hello.
It's better to change Panel placement and set the Grow to Height property of the text components.
Please, look at the attached report template. Each Panel has own color. Thank you.
It's better to change Panel placement and set the Grow to Height property of the text components.
Please, look at the attached report template. Each Panel has own color. Thank you.
Re: Text components grow to height
Oh... if each Text component from one row is on one panel it is easy
Problem is, that I have components like in my example - a lot of panels with 3 Text componens on each.
Is there opportunity to achieve what I want?
I thought that my idea from example should work, but it do not and I have no idea why.
Problem is, that I have components like in my example - a lot of panels with 3 Text componens on each.
Is there opportunity to achieve what I want?
I thought that my idea from example should work, but it do not and I have no idea why.
Re: Text components grow to height
Hello.
Please, look at the attached report template. You could see our code in the next events:
Please, look at the attached report template. You could see our code in the next events:
- After Print event of the Panels
- Before Print event of the Text components
- Get Tag event of the Text components
- Attachments
-
- Report.mrt
- (21.67 KiB) Downloaded 521 times
Re: Text components grow to height
Seems working. Thank you for help.
Re: Text components grow to height
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
Re: Text components grow to height
Hello!
We have hundrets of cells as text fields (without panels at all), grouped in rows and bands.
Your suggested solution for a small example works, but it is not acceptable for a huge amout of text fields.
All cells in the same row in designer are at the same Y-Position and have the same height.
It would be nice to have a simple property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow vs. something combined.
Is it possible?
Thank you very much.
We have hundrets of cells as text fields (without panels at all), grouped in rows and bands.
Your suggested solution for a small example works, but it is not acceptable for a huge amout of text fields.
All cells in the same row in designer are at the same Y-Position and have the same height.
It would be nice to have a simple property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow vs. something combined.
Is it possible?
Thank you very much.
Re: Text components grow to height
Hello!
Your solution works with a small reports. As we have hundrets of text fields (without panels) grouped in rows the grouped in data bands, it is lot of code work and much less acceptable.
In our situation each cell in a row is at the same top position and has same height. The next row top position is close to bottop of upper row.
So it would be nice to have a property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow or something like that combined.
Is it possible?
Thank you very much.
Your solution works with a small reports. As we have hundrets of text fields (without panels) grouped in rows the grouped in data bands, it is lot of code work and much less acceptable.
In our situation each cell in a row is at the same top position and has same height. The next row top position is close to bottop of upper row.
So it would be nice to have a property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow or something like that combined.
Is it possible?
Thank you very much.
-
- Posts: 6259
- Joined: Tue Mar 20, 2018 5:34 am
Re: Text components grow to height
Hello,
> So it would be nice to have a property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow or something like that combined. Is it possible?
Unfortunately, it is not possible.
Thank you.
> So it would be nice to have a property like GrowToHeightAsMaxInSameRow vs. ShrinkToHeightAsMinInSameRow or something like that combined. Is it possible?
Unfortunately, it is not possible.
Thank you.
Re: Text components grow to height
Ok, but how to do this with a huge amount of text fields?
Without grow/shrink to the same heigt it would look very ugly.
The acceptable solution would be codes, that each databand call bevore beginn to store cell collection per row and per column, than on first in order to save calculated heights and second pass in order to rearrange cells per row.
I think, with your knowledge it will be possible
Or am I wrong with this conclusion?
Many thanks.
Without grow/shrink to the same heigt it would look very ugly.
The acceptable solution would be codes, that each databand call bevore beginn to store cell collection per row and per column, than on first in order to save calculated heights and second pass in order to rearrange cells per row.
I think, with your knowledge it will be possible
Or am I wrong with this conclusion?
Many thanks.