Export to Excel Item no. question

Sbhat
Member Posts: 301
I have a client who have their Item no. as 00045648333443 and when I create a report to send it to excel it drops the leading 0's and just shows as 84453555 or sometimes shows as 8E+2E0 something like that. I am just using Excelbuf.Addcolum(item."No.",false,false)
Is there any way you can format it such that it shows 00045648333443 in Excel keeping the leading 0's.
Thanks
Is there any way you can format it such that it shows 00045648333443 in Excel keeping the leading 0's.
Thanks
0
Comments
-
Hi,
This is problem with excell cell format - that should be set as "Text".
Excel buffer table in NAV 5 and 2009 (don't remember earlier versions) has a field named "Number format", and you should use @ sign for this field.
The @ (at) sign determine text format for the cell, for example:
ExcelBuffer.AddColumn(FORMAT(Value),FALSE,'',FALSE,FALSE,FALSE,'@');http://www.nav.info.pl/ - First polish blog about Dynamics NAV.0 -
Hi,
I hope this should help you.
http://saurav-nav.blogspot.in/2012/06/nav-report-export-to-excel-number-as.html
Let me know if you have 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.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