Export Excell error
kmkaot
Member Posts: 261
Can anybody help me with following code as I am getting error
IF (Row=1) AND (Txtexporttoexcel) THEN
BEGIN
EnterCell(Row,1,'PRODUCT',TRUE,FALSE,FALSE);
EnterCell(Row,2,'DESCRIPTION',TRUE,FALSE,FALSE);
EnterCell(Row,3,'UOM',TRUE,FALSE,FALSE);
EnterCell(Row,4,'GROUP',TRUE,FALSE,FALSE);
EnterCell(Row,5,'OPG.STOCK',TRUE,FALSE,FALSE);
EnterCell(Row,6,'INCREASE ',TRUE,FALSE,FALSE);
EnterCell(Row,7,'AUH SALEE',TRUE,FALSE,FALSE);
EnterCell(Row,8,'DXB SALE ',TRUE,FALSE,FALSE);
EnterCell(Row,9,'TRANSIT ',TRUE,FALSE,FALSE);
EnterCell(Row,10,'STOCK QTY',TRUE,FALSE,FALSE);
EnterCell(Row,11,'UNIT COST',TRUE,FALSE,FALSE);
EnterCell(Row,12,'STK VALUE',TRUE,FALSE,FALSE);
END;
Row+=1;
IF (Row=1) AND (Txtexporttoexcel) THEN
BEGIN
EnterCell(Row,1,'PRODUCT',TRUE,FALSE,FALSE);
EnterCell(Row,2,'DESCRIPTION',TRUE,FALSE,FALSE);
EnterCell(Row,3,'UOM',TRUE,FALSE,FALSE);
EnterCell(Row,4,'GROUP',TRUE,FALSE,FALSE);
EnterCell(Row,5,'OPG.STOCK',TRUE,FALSE,FALSE);
EnterCell(Row,6,'INCREASE ',TRUE,FALSE,FALSE);
EnterCell(Row,7,'AUH SALEE',TRUE,FALSE,FALSE);
EnterCell(Row,8,'DXB SALE ',TRUE,FALSE,FALSE);
EnterCell(Row,9,'TRANSIT ',TRUE,FALSE,FALSE);
EnterCell(Row,10,'STOCK QTY',TRUE,FALSE,FALSE);
EnterCell(Row,11,'UNIT COST',TRUE,FALSE,FALSE);
EnterCell(Row,12,'STK VALUE',TRUE,FALSE,FALSE);
END;
Row+=1;
0
Comments
-
Looks like you want those to be your column headings.
Is that the only code you have created so far?
How do you know the error is for that bit of code?0 -
The error is focusing on the code I have given.
Warm Regards
KMK0 -
Is your EnterCell like this?
EnterCell(RowNo : Integer;ColumnNo : Integer;CellValue : Text[250];Bold : Boolean;Italic : Boolean;UnderLine : Boolean) : Text[250]
TempExcelBuffer.INIT;
TempExcelBuffer.VALIDATE("Row No.",RowNo);
TempExcelBuffer.VALIDATE("Column No.",ColumnNo);
TempExcelBuffer."Cell Value as Text" := CellValue;
TempExcelBuffer.Formula := '';
TempExcelBuffer.Bold := Bold;
TempExcelBuffer.Italic := Italic;
TempExcelBuffer.Underline := UnderLine;
TempExcelBuffer.INSERT;0 -
Hey KVM,
Excel Buffer have one new field from NAV 2013 Onward.
For Upgrading Reports with Export to Excel Refer to Below Post -
Export to Excel with Add Column -
http://saurav-nav.blogspot.in/2014/01/nav-2013-r2-export-to-excel-report.html
Export To Excel With Enter Cell Refer Below -
http://saurav-nav.blogspot.in/2014/01/nav-2013-r2-export-to-excel-report-with.html
Let me know if any issues.
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.7K Microsoft Dynamics NAV
- 18.8K 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
- 327 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
