Skip to content

Instantly share code, notes, and snippets.

@cesarjr
Created December 16, 2012 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarjr/4313190 to your computer and use it in GitHub Desktop.
Save cesarjr/4313190 to your computer and use it in GitHub Desktop.
Impressão utilizando acesso direto a porta com Delphi
var
Impressora: TextFile;
begin
AssignFile(Impressora, 'lpt1:');
ReWrite(Impressora);
WriteLn(Impressora, 'Olá Mundo!');
WriteLn(Impressora, 'Isto é uma impressão direta.');
WriteLn(Impressora, #15'Imprimindo em condensado.'#18);
CloseFile(Impressora);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment