spaman
asked on
Pascal Printing
I was wondering how one could print the contents of a text file to the local LPT 1 printer thanks for your time i would really appreciate it if you could paste a brief example and tell me what include files i need to use... etc
print it from notepad
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for hte awsome reply =) it really helped clearify the poorly made help file =P
Glad I could help. Note that Lst is quite very much like your screen, in the sense that DOS sees them both as character output devices. The following statements are also acceptable:
var r : real;
begin
r := 3.54;
writeln(lst,'value is ',r:6:2);
<or>
writeln(lst,'a':6,'b':5);
Play around with it.
var r : real;
begin
r := 3.54;
writeln(lst,'value is ',r:6:2);
<or>
writeln(lst,'a':6,'b':5);
Play around with it.
ASKER
I was also wondering if there was a way to clear out the printer buffer because to get it to actually print i need to reset the printer each time .....
Reset the printer how?
PS What setup you have? What PC & Printer? Using this out of a DOS-shell or plain old ms-dos?
PS What setup you have? What PC & Printer? Using this out of a DOS-shell or plain old ms-dos?
ASKER
I have a p233 with an epson stylus 640 . i am running the pascal stuff out of a dos shell under windows