Solved

Printing like dos

Posted on 1998-05-01
1
192 Views
Last Modified: 2010-04-06
I want to print some documents like in dos, i mean by
fonts of dot matrix printer like ascii text printing
in dos. Because its faster then windows printing.
0
Comment
Question by:cemkokten
1 Comment
 
LVL 1

Accepted Solution

by:
bcrotaz earned 20 total points
ID: 1340175
Here you go:

var
  Text: TextFile;
begin
  AssignPrn(Text);
  try
    ReWrite(Text);
    Printer.Canvas.Font.Name:='Courier';
    Printer.Canvas.Font.Size:=14;
    Printer.Canvas.Font.Style:=[];
    { do your writing here }
    WriteLn(Text,'My Text Here');
    {when you've finished writing}
  finally
    CloseFile(Text);
  end;
end;


0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Create Database on Android via Delphi dbExpress 3 90
delphi parse string to params 3 122
LAN or WAN ? 11 91
firemonkey keyboard covers the controls 1 25
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question