Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Printing    [ Add a report in this area ]  
Report #:  2414   Status: Reported
Total number of printed pages is wrong when printing source code
Project:  Delphi Build #:  7.0.4.453
Version:    7.0 Submitted By:   Illya Kysil
Report Type:  Minor failure / Design problem Date Reported:  9/19/2002 6:54:48 AM
Severity:    Infrequently encountered problem Last Updated: 5/2/2003 12:58:35 PM
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (5 Total Ratings)
4.00 out of 5
Total Votes: None
Description
Problem: Total number of printed pages is wrong when printing source code with 'Wrap lines' option on and long (>80 chars) lines.

Cause: A code that calculates the total number of printed pages doesn't account of wrapped lines (lines with length > 80 chars).

Visible artefacts: 'page 12 of 10' in upper right corner of print.

PS: the bug seems to be present since D1
Steps to Reproduce:
None
Workarounds
None
Attachment
2414.zip
Comments

Robert Love at 9/19/2002 7:25:25 AM -
To make this easy to reproduce it might be nice to have a test document that can demostrate the problem just by printing it.

Illya Kysil at 9/19/2002 8:07:02 AM -
I've added a test document. See attachments, Unit1.pas.
It is not a real Delphi source, but a test document to reproduce a problem.
My printer settings are:
Paper size A4
Orientation Portrait

Server Response from: ETNACODE01