Solved

Printing like dos

Posted on 1998-05-01
1
191 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now