When Report is runned the Data is stored in Temporary Buffer

Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
When Report is runned the Data is stored in Temporary Buffer and same is printed in the report.
i have written the below code:

Vendor Ledger Entry 2, Body (1) - OnPreSection()
IF CurrReport.SHOWOUTPUT THEN
BEGIN
Buffer.INIT;
Z:=Z+1;
Buffer."Sr. No." := Z;
Buffer."Document No.":= "Vendor Ledger Entry 2"."Document No.";
Buffer."Invoice No." := "Vendor Ledger Entry 2"."External Document No.";
Buffer.Date := "Vendor Ledger Entry 2"."Posting Date";
Buffer.Amount := ABS("Vendor Ledger Entry 2"."Closed by Amount");
Buffer.INSERT;
END;

The code is working but the details is printing twice....


Can someone suggest what to do.....
Thanks & Regards,
Stivan D'souza

Comments

  • ebsoftebsoft Member Posts: 81
    Missing data :D
    Regards,
    Federico

    MBS Specialist since NAV 2.0
    My experiences on Linkedin
Sign In or Register to comment.