VB, .NET, SQL Server, MOSS
Programming for life!
Serving the web community
with my knowledge

I have sworn not to use the Excel interop anymore, but I was forced to use it again. It seems that reading data from Excel using OLEDB doesn't give correct data in some circumstances (truncated data etc.), so we tried to use the Excel interop. But I ran into the following problems:
To solve these problems, you need to do the following things:
After this, it works like a charm! Your program will build on any machine, and run-time it will work with Excel 2003 or 2007.
Here is the C# code:
Last modified on: 2009-02-05