Apache OpenOffice (AOO) Bugzilla – Issue 59904
FrameSearchFlags doesnt work for loadComponentFromURL()
Last modified: 2020-06-08 07:07:39 UTC
the following macro doesn´t work correct in the 2.0.1 version but only in 2.0.0. The file "form1" is loaded, but using the same code to open another file creates a new frame. It´s not opened in the same frame. Sub LoadForm1 Dim oDoc1 As Object Dim sURL1 As String Rem Load a documents into the frame "myframe"! oDesk = createUnoService("com.sun.star.frame.Desktop") Dim NoArgs() Rem Frame "myframe" will be created if it does not exist because it includes "CREATE" sUrl_1 = "file:///C:/Form1.odt" oDoc1 = oDesk.LoadComponentFromUrl(sUrl_1, "myframe", 63, Noargs()) End Sub
sw->as: looks like one for you ... in OOo 2.0 the frame was reused ... in OOo2.0.1 a new frame is created.
.
Changed the title
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
grabbing issue
Reset assigne to the default "issues@openoffice.apache.org".
Still continue with AOO 4.1.7 The new document don't have its frame named. Constant com.sun.star.frame.FrameSearchFlag.CREATE [1] seems to be ignored. A workaround is to set a name: oDoc1.CurrentController.Frame.setName("myframe") [1] https://www.openoffice.org/api/docs/common/ref/com/sun/star/frame/FrameSearchFlag.html