Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adjusting the Report Band 2

Status
Not open for further replies.

itflash

Programmer
Joined
Jul 18, 2001
Messages
535
Location
GB
Hi

I have a report that prints out one line of detail from a cursor.

However, I want to include another line that will be one single line of text.

BUT

I only want that extra line to appear if the text line is not blank. Therefore, the report band height will adjust according to whether this line is printed or not.

Can anyone help or point me in the right direction?

Thanks



 
Hi,

I wasn't sure if your question was how to print the extra line or how to adjust the band width, however...

To print something conditionally like this, you need to add the line to the report as a label object. Then right click on the label, click on Properties, click Print When button.

At the bottom you have a check box for entering an expression to determine when to print the extra line. In this instance I would have thought if you said NOT EMPTY(CursorText) then you would get what you are looking for.

Hope that helps,

Stewart
 
Hi

Expand the width of the details band of the report writer,
Put the text field as you would do for other field items.
Now double click on this Text Box created. Report expression box opens up. Now click on the 'PRINT WHEN' button. Click on 'Remove link if blank'. Click OK all along and save it. REMEMBER TO HAVE THE REPORT EXPRESSION AS ALLTRIM(myTextField) so that you dont have enpty spaces reported.. as empty spaces is not BLANK.


ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :-)
 
yup, thanks all.
works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top