Export to Excel in NAV5.0SP1 - Number stored as text

R_van_den_Boom
Member Posts: 5
When exporting the Chart of Accounts in NAV 5.0SP1 with the excel export button in the NAV client, the numbers that were exported all get stored as text.
I am using Excel 2007, is this something I need to modify in my Excel settings?
Thank you all for your time,
0
Comments
-
I searched this forum on excel+export+text, and came up with this thread: Problems with decimal separator using "Send to .....".
In that thread there is a link to a Microsoft KB article: Platform Update rollup 956161 is available for Microsoft Dynamics NAV 5.0 SP1.
And in that KB article, you can read this:Additionally, this platform update rollup resolves the following problems that are not documented:
[...]
When you export a number to an Excel worksheet, the number is formatted as text instead of as a number. Therefore, Microsoft Dynamics NAV does not consider the regional thousand separator as expected.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Thanks for the feedback, we installed this update but the problem has not been fixed yet unfortunately..
Still getting the same results when exporting to Excel0 -
Then I suggest you contact Microsoft support, directly or via your NAV partner.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Did some additional searching and it seems this is something you can fix in the stylesheet.
This only works in Navision 5.0 SP1, from build 27191.
In NAV :
• Open Form 690 (Manage Style Sheets).
• Select the stylesheet for exporting to Excel.
• Functions, export.
• Open the file in Notepad or visual studio
• Modify the following in the Style sheet:
<xsl:when test='@subtype != 'number'''> replace by <xsl:when test='@datatype != 'Decimal''>
<xsl:when test='@subtype = 'number'''> replace by <xsl:when test='@datatype = 'Decimal''>
PLEASE NOTE the capitals..
• Save the Style Sheet.
• Delete the existing Stylesheet in Navision
• Functions, Import.
• Select the newly imported stylesheet in the model
• Send To program: EXCEL.EXE
This did the trick for me, no more numbers stored as text now in Office20070 -
Thx for posting the solution! This is the real community spirit =D>No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
R van den Boom wrote:Did some additional searching and it seems this is something you can fix in the stylesheet.
This only works in Navision 5.0 SP1, from build 27191.
In NAV :
• Open Form 690 (Manage Style Sheets).
• Select the stylesheet for exporting to Excel.
• Functions, export.
• Open the file in Notepad or visual studio
• Modify the following in the Style sheet:
<xsl:when test='@subtype != 'number'''> replace by <xsl:when test='@datatype != 'Decimal''>
<xsl:when test='@subtype = 'number'''> replace by <xsl:when test='@datatype = 'Decimal''>
PLEASE NOTE the capitals..
• Save the Style Sheet.
• Delete the existing Stylesheet in Navision
• Functions, Import.
• Select the newly imported stylesheet in the model
• Send To program: EXCEL.EXE
This did the trick for me, no more numbers stored as text now in Office2007
Decimal with caps or not, I get the same numbers in text format. I have noticed that Aged Accounts receivable report which has export to excel works fine. It's only the stylesheets...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