Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi there,
I'm working in a C# project that processing the Excel sheet. I want to append at the end of sheet and make no changes to the current style of sheet.
I can do it with Microsoft.Interop.Excel but it seems to be difficult when a user don't use MS Excel software.
I try ExcelLibrary and NPOI but they make the sheet lost its style.
Is there any helpful library on the Internet? Please help me.
Thanks,
Posted

1 solution

Try OleDbConnection.

Sample :
var excelConnection = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=" + location + ";Mode=ReadWrite;Extended Properties=Excel 8.0;");
excelConnection.Open();

Or else LinqToExcel

Regards
Piet
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900