Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
VCL
8-Byte Alignment
Action Classes
Additional Controls
Core VCL Classes
DFM to TEXT
Dialog Controls
Docking
Drag/Drop
Emulation Classes
Exceptions
Gestures
Graphics
MAPI Support
MDI Support
Multi-Monitor Support
OnGesture event
Printing
Property/Type Editors
Registry / INI Objects
Ribbon Controls
Sample Controls
Services
Standard Controls
Styles
System Controls
Thread support
Touch Controls
Type Info
Win 3.1 Controls
Win 32 Controls
You are not logged in.
Help
Print
Public Report
Report From:
Delphi-BCB/VCL/Printing
[ Add a report in this area ]
Report #:
67101
Status:
Closed
Assignprn in Delphi2009
Project:
Delphi
Build #:
Delphi? 2009 V
Version:
12.0
Submitted By:
Keith Daly
Report Type:
Basic functionality failure
Date Reported:
9/23/2008 12:58:16 PM
Severity:
Serious / Highly visible problem
Last Updated:
3/20/2012 2:24:39 AM
Platform:
All platforms
Internal Tracking #:
265478
Resolution:
Fixed
(Resolution Comments)
Resolved in Build:
:
12.0.3208.17503
Duplicate of:
None
Voting and Rating
Overall Rating:
(1 Total Rating)
5.00 out of 5
Total Votes:
10
Description
This code, which works in D2007, prints garbage in d2009:
procedure TForm1.Button1Click(Sender: TObject);
var
MyFile: TextFile;
I: integer;
begin
AssignPrn(MyFile);
Rewrite(MyFile);
for I :=0 to Memo1.Lines.Count do
Writeln(MyFile, Memo1.Lines[I]);
System.CloseFile(MyFile);
end;
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments
Tomohiro Takahashi at 9/23/2008 7:44:11 PM
-
I corrected Project field, Version field and Area field as Sysop.
Tomohiro Takahashi at 9/23/2008 7:45:52 PM
-
Could you please attach sample project to reproduce your issue?
Keith Daly at 9/24/2008 6:00:27 AM
-
I don't know how to add a comment to an already submitted report.
All you need is a form with a button and a memo with some text in it. Add the code I submitted to the buttons onclick event.
Tomohiro Takahashi at 9/24/2008 7:29:21 PM
-
You are able to modify your report via Windows Native Client or Web client.
So, we can reproduce your issue with quite simple code. Thanks.
Keith Daly at 10/2/2008 8:49:24 AM
-
What could be simpler than what I have already told you?
Malcolm Coulter at 5/25/2009 12:00:53 AM
-
This error appears to occur for any string with Write or Writeln, so the contents of the memo is not important. Not resolved in update 2. The problem may be that the printer is not being set up for the specific (or any) stream type before System._WriteBytes if called.
THIS IS A CRITICAL DEFECT AND SHOULD BE HANDLES WITH MORE URGENCY.
A large amount of code from previous versions does not work and there is no adequate workaround.
Note: the compiler appears to use asm rather than compiled pascal code (for AssignPrn), but this is nor reflected in printers.pas. Is it possible that the distributed printers.pas is not up to date?
Tomohiro Takahashi at 5/27/2009 9:43:50 PM
-
Hi,
Today, Update3, Updat4, Boost Update have been released.
Please check your issue with these Updates.
Tomohiro Takahashi at 5/25/2009 5:54:45 PM
-
Hi, I agree with you.
We are expecting updates...
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us