Page 1 of 1

Stretch field over remaining space in databand

Posted: Tue Dec 14, 2010 7:53 am
by semtec
Hello,

I have a report with the following structure:

reportHeader
groupHeader
databand
groupFooter
reportFooter

In the databand i have several fields, but the 2nd one is a text field which can contain several lines.
I have the properties set like: WordWrap = True, CanGrow = True
When the text in the field covers several lines, the next line in the databand is printed after the last line in the field (see screenshot 1)
screenshot1

What I want is that the next line is printed right after the first line (see screenshot 2)
screenshot2

How can I do this?

With kind regards,

René

Stretch field over remaining space in databand

Posted: Tue Dec 14, 2010 8:58 am
by JorisWils
I'm having the same problem in some reports that I make. I'd like to know a good sollution too.

You are probably not going to like this but here is what worked for me sometimes .....

You could:
- make 4 string variables
- Concat each row with an "Environment.NewLine"
- Print the variables in the groupfooter
- in the afterPrint event of the groupfooter... Empty the variables.

Problem with this is: Your first row, first column has multiple lines... so the alignment of the other rows will be wrong unless you go count the characters and add another "Environment.NewLine" when needed

:-)

Told you you wouldn't like this :-)

Stretch field over remaining space in databand

Posted: Tue Dec 14, 2010 3:18 pm
by Ivan
Hello,

As a workaround, please try to set the CanGrow property of the DataBand to false.
If the issue is still present, please send to us a mrt file with data for analysis.

Thank you.