-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading from .csv files #49
Comments
Sorry, I don't know of any configuration options that can be set. LinqToExcel uses OLEDB to read from the csv file, so I recommend searching for any configuration options available. And if you find one, let me know. |
Found one. I resurrected some old code I wrote using http://msdn.microsoft.com/en-us/library/ms974559.aspx I found that if I generated my schema.ini file using Format=Delimited (,) instead of Format=CSVDelimited OLEDB was able to read the .csv file without any issues. From: Paul Yoder [mailto:notifications@github.com] Sorry, I don't know of any configuration options that can be set. LinqToExcel uses OLEDB to read from the csv file, so I recommend searching for any configuration options available. And if you find one, let me know. — |
So it's working fine for you now? |
sigh. No, it looks like I ran a test with the wrong file. I thought I had found a configuration option for OleDb to read my “special” .csv file. If I figure out some way to get OleDb to read the file I’ll let you know. From: Paul Yoder [mailto:notifications@github.com] So it's working fine for you now? — |
Hi, Facing the same issue, is anyone found how to fix this ??? Regards, |
I'm trying to query a .csv file generated from an external system and some example data looks like:
"1230200",,"01","UST, LTD"
They system is putting quotes around fields that don't need them. That is causing LinqToExcel to treat those fields as arrays. I'm having to open the .csv files with excel and save them again as a .csv file to remove the unnecessary quotes so the line would look like:
1230200,,1,"UST, LTD"
which LinqToExcel reads happily.
Are there any configuration options that i'm missing to have LinqToExcel read my files correctly?
The text was updated successfully, but these errors were encountered: