Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program to put text into LibreOffice document

I'm trying to make a program in C# which should put text into an opened LibreOffice document (Writer).

A first the user can make some decisions about the text (saved to string variables) and when clicking on a button it should put the text from these strings to the document.

How can I do that?

like image 286
mrgerbik2013 Avatar asked Nov 16 '25 03:11

mrgerbik2013


1 Answers

Libre Office uses Open Document Format (ODF) (its actually an XML based format and is usually compressed by using zip) which is an easy format to work with ,I have found AODL to be the only openSource library (check below links) and I'm also sure .NET libraries can do the heavy lifting for you, here are some tutorials and links to help you out.

  1. AODL allows your application to support the OpenDocument Format.(OpenSource .NET Library)
  2. How to Read and Write ODF/ODS File
  3. Read and write ODF/ODS files (OpenDocument Spreadsheets)
like image 173
Owais Qureshi Avatar answered Nov 17 '25 19:11

Owais Qureshi