Print problem - weired
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?
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?
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com