Exporting report to excel in Dynamic nav 5.0

ljanneh
Member Posts: 1
I'm currently trying export dynamic nav 5.0 report to excel . Any way I have most of the values to excel
currently I'm stuck at getting the table values to my excel file
i.e
entercell(Row, 1, FORMAT( fixedAsset."No."), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 2, FORMAT( fixedAsset.Description), TRUE, FALSE, FALSE); // this is always empty
this is the sample code
IF isExcel = TRUE THEN BEGIN
Row := Row + 1;
entercell(Row, 1, FORMAT( fixedAsset."No."), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 2, FORMAT( fixedAsset.Description), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 3, FORMAT( StartAmounts[1]), TRUE, FALSE, FALSE);
entercell(Row, 4, FORMAT( NetChangeAmounts[1]), TRUE, FALSE, FALSE);
entercell(Row, 5, FORMAT( DisposalAmounts[1] ), TRUE, FALSE, FALSE);
entercell(Row, 6, FORMAT( TotalEndingAmounts[1] ), TRUE, FALSE, FALSE);
entercell(Row, 7, FORMAT( StartAmounts[2]), TRUE, FALSE, FALSE);
entercell(Row, 8, FORMAT( NetChangeAmounts[2]), TRUE, FALSE, FALSE);
entercell(Row, 9, FORMAT( DisposalAmounts[2] ), TRUE, FALSE, FALSE);
entercell(Row, 10, FORMAT( TotalEndingAmounts[2] ), TRUE, FALSE, FALSE);
entercell(Row, 11, FORMAT( BookValueAtEndingDate ), TRUE, FALSE, FALSE);
entercell(Row, 12, FORMAT( BookValueAtStartingDate ), TRUE, FALSE, FALSE);
END;
UNTIL fixedAsset.NEXT = 0;
END;
in short, I want to retrieve two column from a table and display its values to the first and second of the
excel column
currently I'm stuck at getting the table values to my excel file
i.e
entercell(Row, 1, FORMAT( fixedAsset."No."), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 2, FORMAT( fixedAsset.Description), TRUE, FALSE, FALSE); // this is always empty
this is the sample code
IF isExcel = TRUE THEN BEGIN
Row := Row + 1;
entercell(Row, 1, FORMAT( fixedAsset."No."), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 2, FORMAT( fixedAsset.Description), TRUE, FALSE, FALSE); // this is always empty
entercell(Row, 3, FORMAT( StartAmounts[1]), TRUE, FALSE, FALSE);
entercell(Row, 4, FORMAT( NetChangeAmounts[1]), TRUE, FALSE, FALSE);
entercell(Row, 5, FORMAT( DisposalAmounts[1] ), TRUE, FALSE, FALSE);
entercell(Row, 6, FORMAT( TotalEndingAmounts[1] ), TRUE, FALSE, FALSE);
entercell(Row, 7, FORMAT( StartAmounts[2]), TRUE, FALSE, FALSE);
entercell(Row, 8, FORMAT( NetChangeAmounts[2]), TRUE, FALSE, FALSE);
entercell(Row, 9, FORMAT( DisposalAmounts[2] ), TRUE, FALSE, FALSE);
entercell(Row, 10, FORMAT( TotalEndingAmounts[2] ), TRUE, FALSE, FALSE);
entercell(Row, 11, FORMAT( BookValueAtEndingDate ), TRUE, FALSE, FALSE);
entercell(Row, 12, FORMAT( BookValueAtStartingDate ), TRUE, FALSE, FALSE);
END;
UNTIL fixedAsset.NEXT = 0;
END;
in short, I want to retrieve two column from a table and display its values to the first and second of the
excel column
0
Answers
-
Hi,
Suppose you want to Export Two Fields Says A and B then You can add -
entercell(Row, 1, FORMAT(A), TRUE, FALSE, FALSE);
entercell(Row, 2, FORMAT(B), TRUE, FALSE, FALSE);
Second Parameter in EnterCell is Column Number.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions