The format of the field after exporting to Excel

sunnyk
Member Posts: 280
Hi,
In of the Report we have used Excelbuffer Table to export report data to excel.
For one the column we have wrote like below,
Where the function Entercell is like this,
but in Excel the Value is coming as May-56 instead of 5-7056. Have anybody encountered this type of case.
In of the Report we have used Excelbuffer Table to export report data to excel.
For one the column we have wrote like below,
EnterCell(RowNo,5,Format("Item No."),FALSE,FALSE,FALSE);and the value of Item No is 5-7056.
Where the function Entercell is like this,
EnterCell(RowNo : Integer;ColumnNo : Integer;CellValue : Text[250];lvBold : Boolean;Italic : Boolean;UnderLine : Boolean 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;
but in Excel the Value is coming as May-56 instead of 5-7056. Have anybody encountered this type of case.
0
Comments
-
Did you try to send ' before Item No..
EnterCell(RowNo,5,'''' + Format("Item No."),FALSE,FALSE,FALSE);
0 -
Hi Mohan,
Thanks. It is corrected. but I still didn't understand why it as like that even though i have used he format and the cell value was in text.0
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