Miscalculation of page count when printing - not previewing.
Hi,
Some clients of my company have had some problems with RB printing
pagination.
We are using Delphi6 and RB 6.01 - getting data from MSSQL 2000.
Given two pages, RB insists on printing out 3 pages - which results in quite
a headache as the 3rd page isn't there at all. This is, admittedly, a
problem that occurs only every now and then. As well, this only happens when
printing - not previewing.
The printer does not seem to carry any relevance as the problem has occured
on various printers.
I have tried to reproduce the error but have failed all the times.
As I slowly running out of ideas - are anyone out there who has occured tho
I do not know if it matters that the application is being run on a Windows
CE terminal through Terminal Services, although it has never occured when
connecting to Terminal Services through my Win2000 box.
Any comments would be highly appreciated.
Some clients of my company have had some problems with RB printing
pagination.
We are using Delphi6 and RB 6.01 - getting data from MSSQL 2000.
Given two pages, RB insists on printing out 3 pages - which results in quite
a headache as the 3rd page isn't there at all. This is, admittedly, a
problem that occurs only every now and then. As well, this only happens when
printing - not previewing.
The printer does not seem to carry any relevance as the problem has occured
on various printers.
I have tried to reproduce the error but have failed all the times.
As I slowly running out of ideas - are anyone out there who has occured tho
I do not know if it matters that the application is being run on a Windows
CE terminal through Terminal Services, although it has never occured when
connecting to Terminal Services through my Win2000 box.
Any comments would be highly appreciated.
This discussion has been closed.
Comments
space and if no draw command is generated on that page, a blank page is
still sent to the devices. Try placing colored shapes in all unused bands to
see what is happening. Then remove those bands you aren't using. This isn't
a bug, as it can be useful to use this technique to generate an empty page
and then later draw on it in code by creating draw commands dynamically
after the report is done.
If that doesn't fix the problem, then try testing with RB 7.02 to see if the
problem goes away.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
2 pages and then insist on printing 3 pages. It is the inconsistency I am
worried about - especially since it is intermittent as well..
will generate the screen preview based on the currently selected printer
driver(Report.PrinterSetup.PrinterName). Each driver has a slightly
different pagination calculations (TextWidth TextHeight measurements). The
end result is that when you preview for one printer and then select a
different printer in the preview, then it may paginate differently, giving
you extra space given the conditions I described earlier. Examine the
Report.PrinterSetup.PrinterName for each report and verify that they are set
to default. Then see if you can reproduce the extra page for a single report
everytime you print. Does the problem show up with other printers? Did you
install the latest printer driver to see if the problem goes away?
It also could be a bug in RB 6.01. Can you reproduce the problem with RB
7.02 trial edition and send us an example (support@digital-metaphors.com)?
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com