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
0
Comments
Federico
MBS Specialist since NAV 2.0
My experiences on Linkedin