Problem with Printing After Preview with RB Ent 6.03 under Delphi Pro 6.0 on Win2k 12-21-2001 keh
Greatings report gurus,
I have a report that has been running perfectly for more that a year now
that is suddenly exhibiting a new weird bug.
It is a master-detail report that prints one page per Master record.
The problem shows up if you select multiple records and preview then print.
If you select multiple records an do a straight print, the pages print
correctly.
If you priview, then print, the Printing dialog says that it is printing
"Printing page 0 for report..." and it prints blank sheets of paper until
you click Cancel.
The only change with this report has been upgrading it from [RB Ent 5.56
under Delphi Pro 5 under Win98] to [RB Ent 6.03 under Delphi Pro 6 under
Win2k].
The rest of our reports are behaving correcly for
selecting-multiple-records-and-previewing-then-printing, but they all
generate at least 2 pages per master record.
Any quick fix ideas?
PS:
The Pipeline tree looks something like this:
plMaster---|---plSlave1---plSubSlave1
|
|---plSlave2---plSubSlave2
Whith the plSlave1 and plSlave2 driving alternate report layouts. Meaning
that only one of them will display at a time.
The master-detail relationship is set-up with ordered TQuieries and Linked
TppDBPiplines.
--
Karin E. Hacker
khacker@computereng.com
Software Developer
Computer Engineering, Inc.
http://www.computereng.com
I have a report that has been running perfectly for more that a year now
that is suddenly exhibiting a new weird bug.
It is a master-detail report that prints one page per Master record.
The problem shows up if you select multiple records and preview then print.
If you select multiple records an do a straight print, the pages print
correctly.
If you priview, then print, the Printing dialog says that it is printing
"Printing page 0 for report..." and it prints blank sheets of paper until
you click Cancel.
The only change with this report has been upgrading it from [RB Ent 5.56
under Delphi Pro 5 under Win98] to [RB Ent 6.03 under Delphi Pro 6 under
Win2k].
The rest of our reports are behaving correcly for
selecting-multiple-records-and-previewing-then-printing, but they all
generate at least 2 pages per master record.
Any quick fix ideas?
PS:
The Pipeline tree looks something like this:
plMaster---|---plSlave1---plSubSlave1
|
|---plSlave2---plSubSlave2
Whith the plSlave1 and plSlave2 driving alternate report layouts. Meaning
that only one of them will display at a time.
The master-detail relationship is set-up with ordered TQuieries and Linked
TppDBPiplines.
--
Karin E. Hacker
khacker@computereng.com
Software Developer
Computer Engineering, Inc.
http://www.computereng.com
This discussion has been closed.
Comments
different printer driver in use. Reduce the static height of the controls in
the detail band to see if that helps. Perhaps, the Win2K printer driver is
returning a slightly smaller printatble area than what you were able to get
from the Win 98 printer driver? This would cause infinite pages, when a
static height control will never have room to fit on a page.
There is a TechTip article on troubleshooting endless pages in the 'General'
thread.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
You could try setting Report.CachePages to true. Are your variables getting
reintialized in the Report.BeforePrint event? When you print from the
previewer, the report will regenerate its pages, if CachePages it false.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com