我想将通过OpenOffice.org UNO创建的TextDocument
保存到磁盘上的文件中。做这个的最好方式是什么?如何以编程方式将文档保存在OpenOffice.org中?
编辑:这是我最终使用的C#代码。 document
是XTextDocument
。
protected void Save (string path)
{
string url = "file://" + path;
PropertyValue [] propertyValues = {
new PropertyValue {
Name = "FilterName",
Value = new Any ("writer8")
}
};
((XStorable) document).storeAsURL (url, propertyValues);
}
在哪种语言? – 2010-01-07 19:05:23
我正在使用C#,但如果您使用其他语言回答,则可以将其转换为C#。 – 2010-01-07 19:06:35
小心你想要什么 - ++++ [> +++++ <-]> [<+++++> - ] + <+[> [> +> + <<-]++>> [<<+>> - ] >>> [ - ] ++> [ - ] + >>> + [[ - ] ++++++> >>] <<< [[<++++++++<++>> - ] + <.<[> ---- <-]<]<<[> >>>> [>>> [ - ] +++ ++++++ <[> - < - ] +++++++++ > [ - [<-> - ] + [<<<]]<[> + <-]>] << - ] << - ] – 2010-01-07 19:14:40