Skip to main content
February 7, 2007
Question

Removing Blank Lines

  • February 7, 2007
  • 2 replies
  • 803 views
When printing account statements, I'm printing the address in the group header band. Even though I'm selecting "remove line when blank", I'm still getting blank lines when there is not a 2nd street address. Is it because the city is set to have a pre-defined top-margin? What can I do to make the address block float? I've tried grouping the address elements (select each address element and then control-G) and I've tried making the the position-type = 'float" but I'm not having any luck. Any help would be greatly appreciated.
This topic has been closed for replies.

2 replies

Participating Frequently
February 12, 2007
tried to add
<CFSETTING ENABLECFOUTPUTONLY="YES">
Put Your code between this tag
<CFSETTING ENABLECFOUTPUTONLY="NO">
Please try this i am not sure
Inspiring
February 9, 2007
I'm not sure I entirely understand your report format, but I had similar problems with my report. It seemed like the "Remove Line When Blank" field never worked. What I ended up doing is relying instead on the "Print When" field. Just about everything has one of these attributes, Group Headers, Detail Sections, Individual Elements, and so on. So I would have it print when the query.recordCount GT 0 or something like that. It works out really well, especially if you want to collapse an entire section or just the header. I haven't tried it with a bunch of individual elements, which is what you see to have in the group header, but keep the "Position Type" property of all the elements to float. And try putting some logic in the "Print When" field to suppress any blank lines. Let me know if that works.
February 9, 2007
Thank you for your suggestions but unfortunately changing the fields to "float" and using the "print when" box did not solve my problem. The only thing that seems to work is having just a bit of a margin between all of the fields in the address block instead of bumping them up against each other (I had to magnify by 2x to see the margins between the fields). Once I did that, it solved my problem.