Controlling Blank Lines

Stimulsoft Reports.NET discussion
Post Reply
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Controlling Blank Lines

Post by MikeC »

I'm working on a report that requires an address formatted similar to the following:

John Smith
123 Main St.
Box 72
Somewhere, OH 55555
USA

The fields are:
Attention
OwnAddLine1
OwnAddLine2
OwnerCity
OwnerState
OwnerPostalCode
OwnerCountry

Not all records in the detail band will have all the data. For example, some may not have OwnerCountry or OwnerAddLine2 fields. I don't want a blank like if there isn't any data.

I currently have it set up like the following:

{Parcel.Attention}
{Parcel.OwnAddLine1}
{Parcel.OwnAddLine2}
{Parcel.OwnerCity}, {Parcel.OwnerState}. {Parcel.OwnerPostalCode}
{Parcel.OwnerCountry}

Any suggestions? Thanks!
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Controlling Blank Lines

Post by Jan »

Hello Mike,

Please set CanShrink property for DataBand where placed this textboxes to true. Also set CanShrink property to true for each text component. And set ShiftMode property to Increasing Size & Decreasing Size.

Thank you.
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Controlling Blank Lines

Post by MikeC »

That doesn't seem to work. I tried placing the individual fields on the data band, in a panel, and in a single text box. Each time I had all of the properties set per the directions and it still has blanks.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Controlling Blank Lines

Post by Jan »

Hello,

Please check attached sample report.

Thank you.
Attachments
484.SimpleList.mrt
(16.3 KiB) Downloaded 194 times
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Controlling Blank Lines

Post by MikeC »

I was able to solve the issue by using the Dock Style property and setting it to "top" for each of the text boxes in the panel.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Controlling Blank Lines

Post by Andrew »

This is very good! Have a nice day!
Post Reply