BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Print text to a LPT port

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
A man
Guest





PostPosted: Wed Nov 19, 2003 2:43 pm    Post subject: Print text to a LPT port Reply with quote



- 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





PostPosted: Wed Nov 19, 2003 4:36 pm    Post subject: Re: Print text to a LPT port Reply with quote



A man wrote:

Quote:
- TPrinter
unit Printers;

Do you have a question?



--
jc

Remove the -not from email


Back to top
A man
Guest





PostPosted: Mon Dec 01, 2003 5:31 pm    Post subject: Re: Print text to a LPT port Reply with quote



Just some handy info on printers and printing.
Back to top
J French
Guest





PostPosted: Tue Dec 02, 2003 9:33 am    Post subject: Re: Print text to a LPT port Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.