Stretch field over remaining space in databand

Stimulsoft Reports.NET discussion
Post Reply
semtec
Posts: 21
Joined: Wed Oct 29, 2008 2:41 am
Location: Rotterdam

Stretch field over remaining space in databand

Post 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é
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Stretch field over remaining space in databand

Post 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 :-)
Using Stimulsoft since 2007
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Stretch field over remaining space in databand

Post 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.
Post Reply