 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
A man Guest
|
Posted: Wed Nov 19, 2003 2:43 pm Post subject: Print text to a LPT port |
|
|
- TPrinter
unit Printers;
- function printer: TPrinter
- TPrintDlg
This is a standard action used for putting in the action
property of menus.
- TPrintDialog
Call .Execute to show the printer dialog.
- TPrinterSetupDialog
I think this is different that a page setup dialog. It shows
printer-specific settings.
- Print in a hurry (local printers only, not network printers)
var
f : TextFile;
begin
AssignFile( f, 'LPT1' );
Rewrite( f );
//
// do your printing here...
//
WriteLn( f, 'hello, world!');
CloseFile( f );
end;
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Wed Nov 19, 2003 4:36 pm Post subject: Re: Print text to a LPT port |
|
|
A man wrote:
| Quote: | - TPrinter
unit Printers;
|
Do you have a question?
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
A man Guest
|
Posted: Mon Dec 01, 2003 5:31 pm Post subject: Re: Print text to a LPT port |
|
|
Just some handy info on printers and printing.
|
|
| Back to top |
|
 |
J French Guest
|
Posted: Tue Dec 02, 2003 9:33 am Post subject: Re: Print text to a LPT port |
|
|
On Mon, 1 Dec 2003 12:31:07 -0500, A man <uce (AT) ftc (DOT) gov> wrote:
| Quote: | Just some handy info on printers and printing.
|
Not so handy, using this method hangs your App if the printer is not
online
A pity.
One is better off getting down to port level, which is tricky nowadays
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|