Delphi OpenOffice open .doc save as .odt -
i'm using delphi open ms word .doc document , save text file. need save .odt file.
i can't find filter properties should use.
this code snippet save-to-text-file functionality:
wproperties := vararraycreate([0, 0], varvariant); wproperties[0] := makepropertyvalue('filtername', 'text'); fdocument.storeasurl('file:///'+ stringreplace(filename, '\', '/', [rfignorecase, rfreplaceall]), wproperties); filename have "c:\temp\aaa.txt" .
what filter name value should use store odt file?
note: i'm using libreoffice if makes difference.
the filter name need use 'writer8'.
Comments
Post a Comment