Apache OpenOffice (AOO) Bugzilla – Issue 569
XDocumentInsertable insertDocumentFromURL not working
Last modified: 2013-02-24 21:07:16 UTC
I've been trying to insert an OpenOffice XML file using insertDocumentFromURL from the com.sun.star.document.XDocumentInsertable interface. So far I have been unsucessful. I've tried using OpenOffice basic and C++ through the UNO component I've created. Neither seem to work. I've also tried to import an OpenOffice document, but that is not working either. I know I can insert documents (inluding XML files) by going Insert->File from the insert menu option (*.zip, *.sxw, and *.sdw all work that way).
AFAIK this feature only exists in OpenOffice.org Writer. If you used it elsewhere, Eric, please specify. It would be nice to include some of your code, too. Thanks. Because it is most likely an implemementation topic anyway, I forward it to the Writer team.
A test in a SRC614 and in a SRC625 using the following macro attached to a writer document worked just fine. Sub Main xCursor = thiscomponent.getText.createTextCursor Dim aValues as Array xCursor.insertDocumentFromURL("file:///e:/temp/test.txt", aValues) End Sub
Posted this as an error, as suggested from the listserve. My code that I posted to the listserve was wrong, and that is why it did not work.
As mentioned on the qa dev list on March 5th I will close all resolved <wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details. First step in IssueZilla is unfortunately to set them to verified.
As mentioned on the qa dev list on March 5th I will close all resolved <wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.