Link to home
Start Free TrialLog in
Avatar of spaman
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
Avatar of kazooie21
kazooie21

print it from notepad
ASKER CERTIFIED SOLUTION
Avatar of washoutt
washoutt

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of spaman

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.
Avatar of spaman

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?
Avatar of spaman

ASKER

I have a p233 with an epson stylus 640 . i am running the pascal stuff out of a dos shell under windows