|
Starts a new page for report or document printout |
|
Reserved |
Reserved for internal use. Should be set to false. |
|
global
procedure VIRn(record RcVc RepSpec)
BEGIN
record VIVc VIr;
Boolean TrHs;
LongInt afr,ato;
Boolean testf;
// Integer MediaPrinter;
afr = FirstInRange(RepSpec.f1,20);
ato = LastInRange(RepSpec.f1,20);
StartReportJob(USetStr(4161));
EndHeader;
VIr.SerNr = afr;
TrHs = true;
while (LoopMain(VIr,1,TrHs)) begin
if ((VIr.SerNr<=ato) or (ato==-1)) then begin
testf = true;
if (RepSpec.OnlyUnprntd==0) then begin
if (VIr.OKFlag<>0) then begin testf = false; end;
end;
// if (VIr.Invalid<>0) then begin testf = false; end;// they want to be able to print invalidated
if (testf) then begin
VIFormat(VIr);
NewPage(false);
end;
end else begin
TrHs = false;
end;
end;
EndJob;
// end;
L99:;
RETURN;
END;
««