Repeating values - RB10.09 Delphi 6.02
Hi
I have a problem with one of my more involved reports. It seems to happen
with data in the detail area where if the data is within a few inches of the
bottom of the page the information is repeated on the next page. Now I do
not have the ReprintOnOverflow set on any of my elements in the report.
I have attached an example of two pages. What you see is the first page has
the last inch or so repeated on the next page. These are subreports which
all shift relative to each other.
The report itself is to complex to be able to package up and send to you
with the data. I am kind of hoping that is just some simple fix and everyone
has had it...
Regards
Andrew
I have a problem with one of my more involved reports. It seems to happen
with data in the detail area where if the data is within a few inches of the
bottom of the page the information is repeated on the next page. Now I do
not have the ReprintOnOverflow set on any of my elements in the report.
I have attached an example of two pages. What you see is the first page has
the last inch or so repeated on the next page. These are subreports which
all shift relative to each other.
The report itself is to complex to be able to package up and send to you
with the data. I am kind of hoping that is just some simple fix and everyone
has had it...
Regards
Andrew
This discussion has been closed.
Comments
I fixed this issue.
In the Calc tab events I was using an event fired by a memo that was on the
page which determined if the memo and various other info was shown on that
page. I switched this to the ReportOnStartPage event and the issue
dissapeared. I think what was happening was the page was being layed out
with the items at the top visible and then the code ran and removed the top
and shifted the page up but it left the next page with the remnants of the
data.
The upshot of this is be very careful where you tirgger events that remove
items and change the page length.
regAddress.visible := ((Report.AbsolutePageNo = 1) or
((Report.AbsolutePageNo <= 2) and
(V_THT_DOC_GEN['IS_AGENT'] = 'Y')) or
((Report.AbsolutePageNo =
Report.AbsolutePageCount) and
(V_THT_DOC_GEN['IS_AGENT'] = 'Y')));
regSummary.visible := not regAddress.visible;
regAddress.top := regSummary.top;
The difference in page height was exactly the height of data that was
repeated.