Crystal Reports Online Training

Learn Online, Anytime, Anywhere

Step-by-step online tutorials.

8.06 Tutorial 8-1 Eliminating Blank Address Lines

Tutorial 8-1. Eliminating blank address lines.

A common problem with printing addresses is that not every line is always used. Every address has a line allocated for the street address, but some addresses need a second line for other miscellaneous information. This could be an “Attention:” comment or the suite number. If an address doesn’t use this second line, it appears as a blank line and messes up the formatting of the address. An example of these labels is shown in Figure 8-11.



Figure 8-11. Address labels with blank lines.

To fix this problem, create three sections. The first section has the addressee’s name and street. The second section only has the optional second address line. The third section has the rest of the address fields.



Figure 8-12. Address labels in design mode.

To make the second section only appear when there is data in the second address line, set the formatting option Suppress Blank Section. If the second address line doesn’t have any information, then the section isn’t printed and the blank line is eliminated. The printed labels are shown in Figure 8-13.



Figure 8-13. Address labels that suppress blank sections.