I would like to save TextDocumentcreated through OpenOffice.org UNO to a file on disk. What is the best way to do this?
Edit: this is the C # code I used. documentis 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);
}
source
share