I know this topic has been discussed but I think it has some differences. I have some list of object which I want to copy to Excel. I need to format the appearance of the spreadsheet too, if possible from Excel. I’ve been said that was some kind of Excel Automation library or so that allows yo to build a spreadsheet from code. This way I should be able to create that document and later open it. Any ideas on that matter? Thanks!
Share
You can export data to Excel from C#, can you give us more info about the objects you want to do the export from, if for instance you need to create and open an excel document from a Listview this is how you’d do it:
First you need to add Microsoft.Office.Interop.Excel as a reference to the project and add the following assembly to your code: using Excel = Microsoft.Office.Interop.Excel;