Hello,
I work on an extension where in some cases the opened document is
updated externally. So I have to reload my document.
In a snippet I found this way:
PropertyValue[] aLoadProps = new PropertyValue[0];
// reload current document
xComponentLoader.loadComponentFromURL(this.xFrame.getController().getModel().getURL(),
"_self", 0, aLoadProps);
But in my context this snippet doesn't work. Under Ubuntu nothing
happens when the code is executed, under Windows there occurs an UNO
Runtime Error. At the moment I reload the file manually over File ->
Reload. This works but it is not really a solution.
What is the right way to reload a document via API?
regards
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]