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

Print problem - weired

edited March 2007 in General
Delphi 7, RB 7.04.

I got a report contains group header, detail band, subreport in detail band,
then the group footer.
Each record will return 1 page.
Observations:
1)Sometimes when I run the query returns several pages, say 20 pages, it
displays fine, one record for each employee, one subreport per page.
Sometime it gives me weired display, ie. it displays the page header, then
all the subreport one by one continuously, it should display one subreport
on each page.

2) If it display correctly one subreport per page, however, when I print it,
it happens as above, ie. page/report header, then all the subreports
follows, then the group footer the last.

In short,
1) sometimes it previews all subreport together
2) sometimes it previews correctly but print out all subreports together.

Any idea?

Comments

  • edited March 2007
    Hi Alan,

    I have not seen this behavior before. How are you keeping each record
    confined to a single page? Are you able to recreate this issue with the
    trial version of RB 10.05?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2007
    What do you mean by keeping the record together?

    Inside the detail band is some dblabels, dbtext, and at the bottom of detail
    band is subreport.
    So it sometimes display correctly:
    eg.

    Page 1 -
    Employee name
    Employee address
    --Subreport ---
    Sales order date 1 Sales amount
    Sales order date 2 Sales amount

    Page 2 -
    Employee name
    Employee address
    --Subreport ---
    Sales order date 1 Sales amount
    Sales order date 2 Sales amount

    However, sometimes it displays as

    Page 1 -
    Employee name
    Employee address
    --Subreport --- (of employee A)
    Sales order date 1 Sales amount
    Sales order date 2 Sales amount
    --Subreport --- (of employee B)
    Sales order date 1 Sales amount
    Sales order date 2 Sales amount
    --Subreport --- (of employee C)
    Sales order date 1 Sales amount
    Sales order date 2 Sales amount

  • edited April 2007
    Hi Alan,

    How are you forcing a page break for each subreport? Are you able to
    determine what condition is needed to cause the error. It seems for some
    reason in some cases, the page breaking method you are using is breaking
    down in some cases. As a test, try commenting out all your event code and
    re-run the report. If this helps, periodically begin adding the code back
    to isolate the problem.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.