Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Printing    [ Add a report in this area ]  
Report #:  93865   Status: Open
Miscalculated page count (Page 27 of 26)
Project:  Delphi Build #:  11.0.2902.10471
Version:    11.2 Submitted By:   Gerd Thieme
Report Type:  Minor failure / Design problem Date Reported:  5/13/2011 8:04:02 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   283159
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When printing header and page number, the precalculated page count uses a wrong number of lines per page. Apparently, the number of available lines is reduced just by 1 for the header line, but it should be reduced by 2 for header plus an empty line.

With a short text you get a wrong page count by careful construction (see Steps), but with longer texts the probability increases. I did not try printing a number of pages which exceeded the number of lines per page, but I guess that this could even result in "Page 101 of 99".
Steps to Reproduce:
1. Print more than 1 page of any Delphi code with print option [ ] Header/page number *unmarked*.
2. Count number of lines per page.
3. Select exactly one line less than this number.
4. Print selected lines with print option [v] Header/page number *marked*
5. Sneer at header "Page 2 of 1".
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01