gpt4 book ai didi

delphi - Delphi OpenOffice打开.doc另存为.odt

转载 作者:行者123 更新时间:2023-12-03 18:36:43 26 4
gpt4 key购买 nike

我正在使用Delphi打开MS Word .doc文档,并将其另存为文本文件。我现在需要做的是将其另存为.odt文件。

我找不到应该使用的过滤器属性。

这是“保存到文本文件”功能的代码片段:

  wProperties := VarArrayCreate([0, 0], varVariant);
wProperties[0] := MakePropertyValue('FilterName', 'Text');

fDocument.StoreAsURL('file:///'+ StringReplace(FileName, '\', '/', [rfIgnoreCase, rfReplaceAll]), wProperties);


文件名将类似于“ c:\ temp \ aaa.txt”。

我应该使用哪个过滤器名称值存储为odt文件?

注意:如果有什么不同,我实际上正在使用LibreOffice。

最佳答案

您需要使用的过滤器名称是'writer8'

关于delphi - Delphi OpenOffice打开.doc另存为.odt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22482321/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com