home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
lan
/
spoolit
/
lstcap.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1987-02-15
|
1KB
|
51 lines
program test_Spool;
{ Written by Scott A. Lewis 08/26/86 }
{ CIS ID 76515,135 }
{ This is an example of using the Novell List capture feature to
spool print data and then release the spool when done }
type
IntResult = record { For MSDOS Calls }
case integer of
0 : (AX,BX,CX,DX,BP,SI,DI,DS,ES,Flags : integer);
1 : (AL,AH,BL,BH,CL,CH,DL,DH : byte)
end;
procedure lstcaptureon; { Start spooling }
var
reg : intresult;
begin
reg.ah:=$DF;
reg.dl:=0;
intr ($21,reg)
end;
procedure lstcaptureoff; { Stop Spooling }
var
reg : intresult;
begin
reg.ah:=$DF;
reg.dl:=1;
intr ($21,reg)
end;
procedure topofform; { Send top of form character }
begin { Replace with something else }
write(lst,#12); { if your printer is different. }
end;
begin
lstcaptureon; { spool }
topofform; { form feed }
writeln (lst); { blank lines }
writeln (lst);
writeln (lst,'Sample text'); { text }
topofform; { eject sheet }
lstcaptureoff; { end spool }
end.