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

Detail Band Problem on Page Break

edited September 2014 in General
Hello,

I am tasked with correcting a problem on a Version 12.05 RB report in Delphi
2010..
The phDynamic detail band consists of 3 (nonDB) memo fields which are
programatically populated in a DetailBandBeforePrint event handler.
They each shift relative to each other. The problem appears to be that when
one of the memos is populated with multiple lines and the particular detail
band happens to coincide with a page break, the report goes into runaway
producing endless pages. If the report runs and the multiple line memo
happens to not coincide with a page break then the report completes. When
it does occur and I identify the specific lines which make up the memo and I
filter them out in reportbeforeprint the report runs OK.

I've attempted to enclose the memos in a region, but the appearance is
incorrect. I did this to try and accomplish a "keep together". The region
doesn't respond the way the dynamic band does. Incidentally the
memos/detail band are in a group which breaks on each record.

Any suggestions if you happen to follow all of this would be great.

Mike Malinowski
PRG

Comments

  • edited September 2014
    Mike Malinowski wrote:


    Just out of curiosity, what does "appearance is incorrect" mean exactly?

    How is the region configured within the detail band?

    Cheers,
    EdB
  • edited September 2014
    Ed,

    I apologize.

    After relocating the objects (memos) inside of the region within the band I
    did not realize that the previous "ShiftRelativeTo" property values had been
    lost and needed to be reset. Your question made me take a closer look at
    that. The report appearance now looks correct. I still need to do some
    some final object position tweaking and then test the report with several
    data that will confirm if this is resolved.

    Thank you for responding.

    Mike Malinowski

This discussion has been closed.