I'd like to save a TextDocument
created through OpenOffice.org UNO to a file on the disk. What is the best way to do this?
Edit: This is the C# code that I ended up using. document
is an 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);
}