[Solved] UNO Quit refuses to quit

Creating a macro - Writing a Script - Using the API

[Solved] UNO Quit refuses to quit

Postby gkick » Tue Oct 01, 2019 4:47 am

Hi all,

Not sure whether to post this here or in Base. In my base db menu I have a Quit button to which I have assigned the action Open document webpage and the URL .uno:Quit as per image below. Running the button will not quit but open the File Open Dialog ???

If I alternatively run the Access2Base doCmd Quit macro, it tells me there is no connection even though the frontend is connected.
Anyway, anyone having a working macro to close down Base, but not necessarily other LO windows ?

Thanks
Attachments
UnoQuit.JPG
Last edited by gkick on Thu Oct 24, 2019 8:38 am, edited 2 times in total.
Libre Office 6.2 on Windows 10 HSQL 2.5 backend
gkick
 
Posts: 116
Joined: Wed Aug 07, 2019 5:24 pm
Location: Chile

Re: UNO Quit refuses to quit

Postby JeJe » Tue Oct 01, 2019 10:36 pm

Code: Select all   Expand viewCollapse view
sub MacroToCloseCurrentComponent
Thiscomponent.close(true)
end sub


If you have more than one database open you can enumerate all the components to close the database ones.
Openoffice 4.1.2
Windows 8
JeJe
Volunteer
 
Posts: 610
Joined: Wed Mar 09, 2016 2:40 pm

Re: UNO Quit refuses to quit

Postby gkick » Wed Oct 02, 2019 2:54 am

Thank you Jeje, however I get the following error message as shown in the image. So far I did find another macro named Lopetus2 which does do a pretty clean kill in Windows, but leaves a 0 byte temporary file in the user folder.

Cheers
Attachments
Captura.JPG
Libre Office 6.2 on Windows 10 HSQL 2.5 backend
gkick
 
Posts: 116
Joined: Wed Aug 07, 2019 5:24 pm
Location: Chile


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 3 guests