im still struggling to print an invoice that i have made in pascal to a usb port printer. any help please. i have tried using various inbuilt function but have had no luck probably because im coding it wrong. thanks in advance
This works in Delphi 7 / WinXP:
program ptest;
{$APPTYPE CONSOLE}
uses
SysUtils,
Printers;
begin
Printer.BeginDoc;
Printer.Canvas.TextOut(200,200,'Hello, world!');
printer.EndDoc;
end.
I don't have/use Turbo Pascal so can't say if it works there as well...