exporting a report to excel
MarocNavNoob
Member Posts: 31
hello,
i'm trying to add a checkbox button which will help export the content of some reports to a excel sheet.
i'm using the excel buffer table as a record and a boolean in the request form to export to excel.
i have an example which i'm working on but its not working for me.
i have 6 functions
1- CreateExcelBook : create the excel using the createBook() function of the the Excel buffer table which works fine for me
2- MakeExcelInfo :
{ExcelBuf.SetUseInfoSheed;
ExcelBuf.AddInfoColumn(FORMAT(Text021),FALSE,'',TRUE,FALSE,FALSE,'');
ExcelBuf.AddInfoColumn(COMPANYNAME,FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.NewRow;
ExcelBuf.AddInfoColumn(FORMAT(Text020),FALSE,'',TRUE,FALSE,FALSE,'');
ExcelBuf.AddInfoColumn(FORMAT(Text019),FALSE,'',FALSE,FALSE,FALSE,''); }
ExcelBuf.NewRow;
ExcelBuf.ClearNewRow;
MakeExcelDataHeader;
from what i learned the SetUseInfoSheed is to give user the hand on the excel.
the NewRow and the AddInfoColumn is clear.
this functions is not working , i don't know why ?
3- MakeExcelDataHeader
4- MakeExcelDataBody
5- MakeExcelDataFooter
i'm calling the CreateExcelBook on the PostReport Event and the makeInfoExcel on the preReport Event. which works fin in an example i have. any idea plz
i'm trying to add a checkbox button which will help export the content of some reports to a excel sheet.
i'm using the excel buffer table as a record and a boolean in the request form to export to excel.
i have an example which i'm working on but its not working for me.
i have 6 functions
1- CreateExcelBook : create the excel using the createBook() function of the the Excel buffer table which works fine for me
2- MakeExcelInfo :
{ExcelBuf.SetUseInfoSheed;
ExcelBuf.AddInfoColumn(FORMAT(Text021),FALSE,'',TRUE,FALSE,FALSE,'');
ExcelBuf.AddInfoColumn(COMPANYNAME,FALSE,'',FALSE,FALSE,FALSE,'');
ExcelBuf.NewRow;
ExcelBuf.AddInfoColumn(FORMAT(Text020),FALSE,'',TRUE,FALSE,FALSE,'');
ExcelBuf.AddInfoColumn(FORMAT(Text019),FALSE,'',FALSE,FALSE,FALSE,''); }
ExcelBuf.NewRow;
ExcelBuf.ClearNewRow;
MakeExcelDataHeader;
from what i learned the SetUseInfoSheed is to give user the hand on the excel.
the NewRow and the AddInfoColumn is clear.
this functions is not working , i don't know why ?
3- MakeExcelDataHeader
4- MakeExcelDataBody
5- MakeExcelDataFooter
i'm calling the CreateExcelBook on the PostReport Event and the makeInfoExcel on the preReport Event. which works fin in an example i have. any idea plz
0
Comments
-
from what i learned the SetUseInfoSheed is to give user the hand on the excel.

Setuseinfosheed/t (don't want to check atm) is to make an extra worksheet with information in it.
Setuseinfosheet is to generate an excel with 2 generated worksheets in it's workbook instead of 1.0 -
okey. thanks for the info.
do you have any idea on what this code is not working for me.0 -
sure, it's commented out: it's enclosed in brackets {}}{{}{ <- these things0
-
yes, since i'm new in navision i didn't notice the brackets. now it works fine. thank you for the reply0
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
- 322 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