Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-1999, 05:03 AM
N/A
Guest
 
Posts: n/a
Default How do I print from a Memo to a Generic Text-only printer?

I need to print some text from a memo on a matrix printer using generic Text-only printer driver. How can I do this?


Reply With Quote
  #2  
Old 09-29-1999, 11:54 PM
N/A
Guest
 
Posts: n/a
Default RE: How do I print from a Memo to a Generic Text-only printer?

You can print directly into printer port LPT1.. or network share name \\computer\queue

example :



var f1:textfile;

begin

assignfile(f1,'LPT1');

assignfile(f1,'\\computer\queue');

rewrite(f1);

// this part you can replace to print text in memo object.

writeln(f1,'aa');

closefile(f1);

end;
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.