Report Printing Issue

Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
1) Header is not printing on Every page
2) want to Print Continuted on Next page at the end of 30 lines of data printed.
Thanks & Regards,
Stivan D'souza

Comments

  • SogSog Member Posts: 1,023
    1) Check the properties of the header, maybe printofeverypage is of use.
    2) You might want to count using a global variable how many times a line has been printed.
    If it hits 30 then currreport.newpage.
    3) there is no 3
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
    1) Header is getting printed now.
    2) i have written code to print 30 lines is as follows:
    To put max lines of priniting do something like this .
    Define a intvar such as MaxLines and on the
    Report - OnInitReport()
    MaxLines := 30;
    after that define another intvar such as LineCounter and on the following trigger put like this
    Vendor Ledger Entry - OnPreDataItem()
    LineCounter := 0;

    after that go to the trigger abd put the following code
    Vendor Ledger Entry - OnAfterGetRecord()
    LineCounter += 1;
    IF LineCounter > MaxLines THEN BEGIN
    CurrReport.NEWPAGE;
    LineCounter := 0;
    END;

    3) now i want to print Continued on Next Page which i m not able to display
    Thanks & Regards,
    Stivan D'souza
  • SogSog Member Posts: 1,023
    IF LineCounter > MaxLines THEN BEGIN
    CurrReport.NEWPAGE;
    LineCounter := 0;
    Continue_nvar := true;
    END;


    section "continue"
    currreport.showoutput(continue_nvar);
    continue_nvar := false;
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
Sign In or Register to comment.