我想將通過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