|
|
How can I compress a line when Address Line2 is blank? |
| Moderator: compserv@nmmi.edu (inherited from parent) | |
|
The following is from Crystal Reports Help. They do not refer to it as "compressing out blank lines" but as "suppressing blank lines".
Eliminating blank lines when fields are empty It is very common to have two address lines in a customer table, one for street address (Address 1), and one that can be used for a suite number or mail stop (Address 2). Address 1 usually contains a value, but Address 2 is often blank. If you create a customer list using this data and stack the fields on top of one another in mailing label format, those customer records with an empty Address 2 field will print with a blank line. You can eliminate this blank line either by using multiple sections, or by suppressing blank lines. To eliminate blank lines by using multiple sections Use the Section Expert to create two new Details sections so that you have a total of three. See Working with sections. Place the Address 2 field in the middle section and the other data in the sections above and below it as you want it to appear in the report. In the Section expert, highlight the middle section. On the Common tab, select the Suppress Blank Section check box. Now, when the report prints, if the Address 2 section is blank, the program will not print it and you will not get unwanted blank lines in the report.
To suppress blank lines in embedded fields
==========
| |
| [Append to This Answer] | |
| 2005-May-09 10:04am |
| ||||||||