Question: how to export table data to excel in c#?
Answer: OleDbConnection mycon; DataTable Table = new DataTable("AllData"); mycon = new OleDbConnection(@"Provider=Microsoft. Jet. OLEDB.