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

Certain pages print infinitely

edited September 2002 in General
RB 5.55

I have a report that is printing particular pages an infinite number of
times. Specifically it seems to be printing the report an infinite number
of times when the information for that one master record perfectly fits into
a page. The printing must be aborted to stop the process. If what prints
is less than a single page or more than a page, the endless loop does not
occur.

I discovered by trying several things: First I commented out some of my
code that populated a string field that is displayed in a memo in the
report. The problem went away. I put the code back then removed a
subreport and the page no longer printed infinitely. I then tried playing
with the CharWrap and Stretch properties of TppDBMemo component and changing
these made the problem go away. I returned the CharWrap and Stretch
properties to their original values and subsequently changed the width of
the same TppDBMemo component. When I shortened the width in the extreme,
the problem went away entirely. When I returned the TppDBMemo to the
original width, the problem returned. I then incrementally decreased the
width and when the width got below a certain value, the problem ceased on
one of the records but continued on another record that now fit the page
perfectly.

Any help for solving this problem would be greatly appreciated.


- Dan Richardson
9/25/2002 12:06:23 PM

Comments

  • edited September 2002
    There is an article which describes how you can get infinite pages in the
    tech-tips newsgroup in its general thread. Most likely the problem is that
    there is a static height control that is not fitting on the page. The
    component that doesn't fit will continue trying to print on subsequent
    pages, even though it will infinitely request pages. Reduce the height of
    the memo until it fits. Try placing TppShapes in all of the bands. Make
    each shape stretch with parent and resize them to occupy the entire band and
    reprint on overflow. Make each one a different color. Now, you can see
    which bands are taking up space on which pages more clearly. If you still
    can't get the report to work, then send us an example report that shows this
    behavior and we'll take a look at it. support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks Jim. I'll try all that out.

    - Dan

This discussion has been closed.