[fpc-pascal] How to deal with printer in FPC win32?

Daniƫl Mantione daniel.mantione at freepascal.org
Sat Jul 7 17:19:13 CEST 2007

Op Sat, 7 Jul 2007, schreef Irawan Tanudirdjo:

> Dear all,
> Anyone has a link/tutorial/anything that can helps
> explain how to deal with dot matrix printer using FPC
> in Windows box?
> I've been trying searching in the net, usually the
> printer programming stuff consist of using canvas, bla
> bla bla, and when I try those codes, they produce a
> graphical version of the text, what I really need is
> how to print a "text only version" of the text I sent
> to the printer (much like the old DOS era), so the
> printer can print faster
> Thanks for any help that you can point me to.
> Irawan T.

Do it just like in Turbo Pascal:

program printing;

uses printer;

  writeln(lst,'Hello World on the printer.');
  write(lst,#12); {Form feed.}

More information about the fpc-pascal mailing list