Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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!

like image 685
Christos Karapapas Avatar asked Jul 12 '11 14:07

Christos Karapapas


1 Answers

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#

like image 200
Icemanind Avatar answered Oct 04 '22 03:10

Icemanind