Highlighted
Absent Member.
Absent Member.
176 views

[archive] Suppressing Print Lines

[Migrated content. Thread originally posted on 11 January 2006]

Hello,
When you use Acubench Report Writer to create a report (graphical or text), is it possible to suppress the printing of a line when the field contained in that line is spaces?
For example:

Name
Address1
Address2
City State Zip

Is it possible for the City-State-Zip line to print right underneath the Address1 line if Address2 is spaces?
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] Suppressing Print Lines

There is no automatic way to tell the Report Composer to do it. But you can accomplish what you want by using a BeforePrint event.

In the Report Composer select the Address2 field, click on the Event tab in the property window, click in the BeforePrint field, then click the button with the ... Click OK to accept the paragraph name or give it a new one. Now enter the code to do what you want.

It will be something like:
If Address2 = spaces string City, State and Zip into Address2 and then move spaces to City, State, and Zip.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.