 | OO-Snippets: How to close the quickstarter under WindowsCommons| Keywords | Quickstarter, Close, Windows, API Windows |
|---|
| Language | OOBasic |
|---|
| Application | Office |
|---|
| Authors | Didier Dorange-Pattoret (initial)
|
|---|
| Supported Versions | 2.0.x |
|---|
| Supported OS | Win32 |
|---|
| Question | Is there another way to terminate the OOo process even if the QS is running beside Office.HowToCloseTheQuickstarterUnderWindows.snip
|
|---|
| Answer | Yes you can issue a shell command like openoffice2.0\program\quickstart - killtray |
|---|
Sub CloseQuickstarter
LeChemin = GetRepertoirePath("prog")&"\quickstart.exe -killtray"
Shell(LeChemin)
End Sub
Function GetRepertoirePath(sInstPath as String) as String
Dim oPathSubstSrv as Object
Dim sPath as String
sInstPath = "$("+sInstPath+")"
oPathSubstSrv = createUnoService("com.sun.star.comp.framework.PathSubstitution")
sPath = ConvertFromUrl(oPathSubstSrv.getSubstituteVariableValue(sInstPath))
GetRepertoirePath = sPath
End Function
|
Changelog| Date | User | Modification |
|---|
| 2006-03-06 | ddorange | Initial version |
|