I' m trying to export xlsx file with these codes:
OleDbDataAdapter adapter = new OleDbDataAdapter(select, accessConnection);
adapter.Update(dataTable);
The connection string is
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\AA\Desktop\work10.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";
I' m trying to export 200000 rows to xlsx file but getting spreadsheet is full error. When I try to open the excel file, I' m getting file extension is not valid error.
After changing .xlsx extension to .xls, file is opening but row count is not enough for me.
Microsoft Access Database Engine 2010 version is installed to the computer.
How can I fix it?