Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-07

How to deal with printer in FPC win32?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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.

____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222

Daniël Mantione
to Irawan Tanudirdjo

Op Sat, 7 Jul 2007, schreef Irawan Tanudirdjo:

Show quoted text 16 lines
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;
begin
  writeln(lst,'Hello World on the printer.');
  write(lst,#12); {Form feed.}
end.