How i remove extra page in report while am printing only four copy?

I need only four no. of copy in report bt while m printing 4 copies then one extra “copy” is coming.

in case of 4 copy i dnt want this extra page…bt wen i print 5 copies thn i need this “copy”.

hv use this code…plz suggest me for same

CopyLoop - OnPreDataItem()

NoOfLoops := ABS(NoOfCopies) + 1;
IF NoOfLoops <= 0 THEN
NoOfLoops := 1;
CopyText := ‘’;
SETRANGE(Number,1,NoOfLoops);
OutputNo := 1;
SNo :=0;

CopyLoop - OnAfterGetRecord()
CopyText := ‘Original for Buyer’;
IF Number > 1 THEN BEGIN
IF Number = 1 THEN BEGIN
CopyText := ‘Original for Buyer’;
END ELSE IF Number = 2 THEN BEGIN
CopyText := ‘Duplicate for transporter’;
END ELSE IF Number = 3 THEN BEGIN
CopyText := ‘Triplicate for Assessee’;
END ELSE IF Number = 4 THEN BEGIN
CopyText := ‘Not for CEN/VAT’;
END ELSE BEGIN
CopyText := ‘COPY’;
END;

Got it! Actually dere is problem in looping only…
NoOfLoops := ABS(NoOfCopies) ; instead of NoOfLoops := ABS(NoOfCopies) + 1;

You seems to be a Smart guy :slight_smile:

Many times you solve your Problems yourself :slight_smile: