Want to Print only 4 records per DataItem per Page in Report

upasanisandipupasanisandip Member Posts: 405
Hi all,
I am creating one report with 2 DataItems.
On Printed Stationary want to print only 4 records per DataItem.
If I use CurrReport.break - it is not printing next reocrds of first DataItem.
It should be printed on Next page.
(Total there are 15 records).

Is it possible that only print 4 records per page ?


thanks,

Comments

  • AlbertvhAlbertvh Member Posts: 516
    Hi

    in the OnPreSection you could maybe add code like this
    IF Counter > 4 THEN BEGIN
      CurrReport.NEWPAGE;
      Counter := 0;
    END;
    
    

    where Counter is an integer and 1 added in the OnAfterGetRecord Section


    Albert
  • upasanisandipupasanisandip Member Posts: 405
    Thanks Albertvh for reply,
    But there are 2 DataItems. The second DataItem 4 records going on Next page. I tried the code u have given.
  • AlbertvhAlbertvh Member Posts: 516
    Hi,
    Put the code in the OnAfterGetRecord of the 2nd DataItem


    Albert
Sign In or Register to comment.