Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Report paging bugs

edited January 2002 in General
DM:

If you can pin this one on me not having the right settings then I'd be
just as happy to get it fixed.
But it appears to me that there are some bugs in the paging and line
display because it's printing inconsistently
and doing some strange things.

Here's the deal:

Report detail columns:
class date (autosize false)
class title (autosize false)
instructor list (dbmemo)
class status (autosize false)
notes (dbmemo)

Description of Detail Band:
This report prints landscape, one db row per detail, all from a single
result set.
The report prints appx 32 detail lines per page, most being single line
(no stretch).
The Instructor List and the Notes come from long strings and may
contain 1 line or wrap 2-4 lines.
A single TppShape (rectangle) is set to ParentHeight/Width so that a
lined box is drawn around the entire detail band.

Settings:
Instructor List and Notes: Stretch = True, Keep Together = True
Detail Dynamic Height = True

Problems:
1. The TppShape stretch works most of the time.
However it seems that about every other time when it encounters a
2-line memo,
it adjusts to the height of the memo, not the stretched detail.
This causes a double line to appear (2-3 times a page) at the bottom
of the detail
(in the middle of the page).
(The double line is really the bottom of the previous detail and the
top of the next detail).
This double line should not ever appear.

2. The setting of "Keep Together" seems to work for the individual memo
only.
So the other fields will print at the bottom of the page, along with
a blank memo,
and the full memo will wait until the next page to print (by itself).
This is not the desired behavior.
I want to print everything on the next page if the memo doesn't fit
at the bottom.
For some reason, I'm not able to do this.

3. On page 5 of the report (first time this occurs):
The two dbMemos both print by themselves on the last detail line of
the page
(they're single-line memos, unstretched)
and the rest of the detail prints on the following page.
Now how did that happen?

All I want to do here is:
a) Print a single-line box around the whole detail
b) Keep the detail all together (never split it between pages)

I've been trying to get the printing on this report right for past four
hours and it's driving me batty.
I've tried every setting and even using Region (doesn't print the box
correctly - messes it up bad).
Any help is appreciated.

Using RB Enterprise 6.02, w/Delphi 5.01

DM: Please don't ask me to send the source code, the report is part of a
huge program, and is dependant on an SQL database that takes a long
script to install.

Mike

Comments

  • edited January 2002
    Reply to my own post:

    Okay I fixed the "keep together" problem.
    Putting every detail field in a Region did the trick.
    The thing I was doing wrong before was not dragging the field into the
    region (saw a previous post explaining that).

    But I'm still getting double lines. And it's inconsistent. It's only on
    the details with stretched memos. But it's not on every one. The first
    stretched memo on a page doesn't produce a double line (bottom line of
    detail printing with a gap before the top line of next detail). But the
    second and third stretched memos do produce that double line.

    That has to be a bug right? How could there be a setting to prevent
    intermittant double lines? It's bug, c'mon admit it.
    I think it's terrible that there are bugs in a product this mature.

    Can anyone tell me how to get rid of those double lines? Or am I drawing
    that box incorrectly? What's the best way to put a single-line box
    around the whole detail (I also have detail-height vertical lines
    between every field). That's right I want a grid effect in my reports.
    Why is this do hard to do?

    There should be one setting: Detail grid = true
    That's all I have should have to do. DM?

    Mike
  • edited January 2002
    Reply again to my own post:

    Okay I fixed the double line problem by setting the region to parent
    height. I don't know why this works but it does.

    Now my detail is being kept together and the lines are thin -- not thick
    and doubling like they were before.
    The trick is that the TppShape and vertical lines have to be OnTop and
    outside the region to work properly. This is not intuitive.

    As far as the bugs go, I guess they worked themselves out... ;-)

    I'm good to go now, after 6 hours working on this stupid report...

    So DM, you can ignore the previous postings in this thread...

    --
    -Mike (...turning off computer, turning on tv, ordering pizza, and
    trying not to think about the millions who will read this...)
This discussion has been closed.