Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

Error when open Excel file just in case regional date format is Bulgarian (Bulgaria)

$
0
0
I try opening Excel file using OleDbConnection like following.

Code:

cn = New OleDbConnection("Provider=Microsoft.jet.oledb.4.0; Data Source=C:\Test.xls;Extended Properties = ""Excel 8.0;HDR=Yes""")
cn.Open()  '<===== here error occurs!
.
.
.

This works fine in English (United States) or other date format.
But, if I change date format to Bulgarian (Bulgaria), following error occurs at cn.Open.

Name:  error.png
Views: 20
Size:  34.8 KB

Bulgaria uses simillar date format to Czech.
It works fine if I change date format to Czech but not Bulgaria.
I can't figure out this problem.
Can anybody give am some advice?
Attached Images
 

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>