Certain pages print infinitely
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
- Dan