Hi all,
i have the following error.
At first, I can read the same excel file with the same sheet name without this error.Code:'Sheet1$' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.
but now i change the development PC and it hit this error.
I'm using Excel 2007 with VB.Net 2005.
Here is my connection string:
And I also added the COM references for Microsoft Excel Object 12.0 in my project.Code:"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & strFile & ";Extended Properties=""Excel 12.0 Xml;HDR=YES"";"
Any idea??
Help
Thanks.
scsfdev




Reply With Quote