c# - 将文本放入 LibreOffice 文档的程序

标签 c# windows libreoffice

我正在尝试用 C# 编写一个程序,该程序应该将文本放入打开的 LibreOffice 文档 (Writer) 中。

首先,用户可以对文本做出一些决定(保存到字符串变量),当单击按钮时,它应该将这些字符串中的文本放入文档。

我该怎么做?

最佳答案

Libre Office 使用 Open Document Format (ODF) (它实际上是一种基于 XML 的格式,通常使用 zip 压缩)这是一种易于使用的格式,我发现 AODL 是唯一的开源库(查看下面的链接)而且我也确信 .NET 库可以做到繁重的工作,这里有一些教程和链接可以帮助您。

  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)

关于c# - 将文本放入 LibreOffice 文档的程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15453174/

相关文章:

c# - 使用正则表达式使用捕获组多次匹配

c# - UPDATE 语句中的语法错误 OleDb 异常

windows - 在 Dev-C++ 中编译 Windows 程序会出错

python - dyld : Library not loaded:/usr/local/libodep/lib/libintl. 8.dylib

c# - 提交表单时模型集合丢失

c# - Entity Framework : Eager Loading Navigation Properties of Inherited Entities

c# - SQLite for WinRT 未通过 Windows 应用程序认证套件

c# - 从 C# Windows 应用程序读取/写入三星安卓手机/平板电脑

python - 枚举 libreoffice 文档中的 FieldMark

crash - Libreoffice Writer在编辑文件属性时使计算机崩溃