Import of csv file with ExcelBuffer?

NavGuyDK
Member Posts: 4
Is it possible to import a csv file into a Nav table using the ExcelBuffer table?
(I am aware of other solutions)
I have coded a function that uses ExcelBuffer, but it ignores the delimiters (;) in the csv file.
If I import the csv file into Excel and save it as an Excel file, then the import works fine.
(I am aware of other solutions)
I have coded a function that uses ExcelBuffer, but it ignores the delimiters (;) in the csv file.
If I import the csv file into Excel and save it as an Excel file, then the import works fine.
0
Comments
-
Did you try? What happened?
If it does nor work 'out of the box' you might have to create an alternate OpenBook function.
Have a look at the XlApp.Workbooks.Open function and MSDN's documentation of it.
However, why would you want to do it? The risk of Excel altering your data is much too high, in my opinion. Some of the problems you will experience are missing leading zeros, numbers converted to dates, numbers changed to scientific notation, problems with decimal and thousands separators, wrong file encoding (Excel sometimes just guesses wrong and it is not trivial to force it to use the right one), ....0 -
Yes, I Tried. The delimiters (;) were ignored, so that there was only one column pr. row instead of 2 columns.
I was just curious about how the ExcelBuffer works regarding importing csv files because some topics in this forum indicates that it could work.
Thanks for the link to the doumentation for the XlApp.Workbooks.Open function and for mentioning the disadvantage using ExcelBuffer.0 -
Why aren't you using dataport/xmlport?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