Is there a way to create/read a LibreOffice Spreadsheet just like MS Office Excel with C#?

Christos Karapapas picture Christos Karapapas · Jul 12, 2011 · Viewed 11.5k times · Source

In a program that creates an excel file, i wonder if i could give the chance to the users that don't have MS Office to create an .xls file with only LibreOffice installed. What should i use instead of "using Excel = Microsoft.office.interlope.excel;" and the rest of the commands ? TnX!

Answer

Icemanind picture Icemanind · Jul 12, 2011

LibreOffice uses the ODF (Open Document Format). ODF is not a hard format to grasp because all it basically is is a collection of XML files that are zipped into one file, called an ODF file. You can read here on how to read and save ODF files. Also, you can check here for a real example in C#