Solved

Printing like dos

Posted on 1998-05-01
1
195 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

718 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