How to insert a new row in excel using oledb c#.net
问题 I'm trying my best to insert a new data row in excel file. please have a look. i'm facing this problem using C#.net framework (3.5) code: try{ string ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\rising rent\\csharp-Excel.xls;Extended Properties='Excel 12.0;HDR=Yes;IMEX=1;MAXSCANROWS=15;READONLY=FALSE;ImportMixedTypes=Text'"; OleDbConnection conn = new OleDbConnection(ConnectionString); conn.Open(); OleDbCommand cmd = new OleDbCommand("INSERT INTO [Inventory$] (C_DATE)