I have a excel file without headers and I'm inserting there some text to specified cells using excel interop. Everything is fine as long as the string does not contain a dot symbol. Text is added to the cell but the application stops working and does not add any more texts. Below is my code.
string connectionString = String.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 12.0;HDR=No;IMEX=0'", filenamepath);
using (OleDbConnection cn = new OleDbConnection(connectionString)) {
cn.Open();
OleDbCommand cmd = new OleDbCommand("INSERT INTO[sheet1$B3:B3] VALUES ('" + "Some string with dot." + "')", cn);
cmd.ExecuteNonQuery();
cn.Close();
}