[Libreoffice-bugs] [Bug 136237] New: LibreOffice Will Not Close

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 28 17:59:23 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=136237

            Bug ID: 136237
           Summary: LibreOffice Will Not Close
           Product: LibreOffice
           Version: 7.0.0.3 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: simonwhite at dciphercomputing.com

I often use Libre Office with Visual FoxPro 9 via automation on Windows Server
2019 Std.  When I open Libre Office Writer from VFP using code as shown below. 
I am unable to close Libre Office by clicking the X in the top right window or
by selecting Quit from the file menu. I can close the document but not Libre
Office.  However, the exact same code is used with Libre Office 6.4 and works
just fine as I can close the application. 

oMergeSrvMgr=CreateObject("com.sun.star.ServiceManager")
oMerge=.oMergeSrvMgr.createInstance("com.sun.star.frame.Desktop")

laArgs(1)=oMergeSrvMgr.Bridge_GetStruct("com.sun.star.beans.PropertyValue")
laArgs(1).Name="ReadOnly"
laArgs(1).Value=.N.
laArgs(2)=oMergeSrvMgr.Bridge_GetStruct("com.sun.star.beans.PropertyValue")
laArgs(2).Name="Hidden"
laArgs(2).Value=.T.
ComArray(oMerge,10)  && convert VFP arrays to COM compatible array
     
oMergeDoc=oMerge.loadComponentFromURL(ConvertToURL(tcFile),"_blank",0, at laArgs)

oMergeDoc.getCurrentController().getFrame().getContainerWindow().setVisible(tlVisible)

Thanks,
Simon

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200828/56b2c60e/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list