Page 1 of 1

Controlling Blank Lines

Posted: Wed Jul 07, 2010 11:56 am
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!

Controlling Blank Lines

Posted: Wed Jul 07, 2010 2:18 pm
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.

Controlling Blank Lines

Posted: Wed Jul 07, 2010 2:40 pm
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.

Controlling Blank Lines

Posted: Thu Jul 08, 2010 1:46 am
by Jan
Hello,

Please check attached sample report.

Thank you.

Controlling Blank Lines

Posted: Thu Jul 08, 2010 1:23 pm
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.

Controlling Blank Lines

Posted: Thu Jul 08, 2010 2:07 pm
by Andrew
This is very good! Have a nice day!