[Libreoffice-bugs] [Bug 118267] New: /org.openoffice.Setup/Product ooXMLFileFormatVersion configuration information throws NoSuchElementException in Basic/Python macros

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 20 11:56:42 UTC 2018


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

            Bug ID: 118267
           Summary: /org.openoffice.Setup/Product ooXMLFileFormatVersion
                    configuration information throws
                    NoSuchElementException in Basic/Python macros
           Product: LibreOffice
           Version: 6.0.4.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: pyoffice.romedenne at sfr.fr

Description:
Product information such as name, version, vendor, etc can be retrieved using
the API. ooXMLFileFormat has disappeared from 5.x to 6.x  

Steps to Reproduce:
Run the follwing ooBasic macro:
Sub OOoVersion() As String
  Dim args(0) As new com.sun.star.beans.PropertyValue
  oConfigProvider =
createUnoService("com.sun.star.configuration.ConfigurationProvider")
  args(0).Name = "nodepath"
  args(0).Value = "/org.openoffice.Setup/Product"
  oSettings =
oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationAccess",
args())
  OOOVersion= oSettings.getByName("ooXMLFileFormatVersion")
  msgbox OOOVersion
End Sub

Actual Results:
Error MsgBox (french example)
  Erreur d'exécution BASIC.
  Une exception s'est produite :
  Type: com.sun.star.container.NoSuchElementException
  Message: ooXMLFileFormatVersion.

Expected Results:
Simple MsgBox stating:
  1.0


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
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/20180620/be3e394e/attachment.html>


More information about the Libreoffice-bugs mailing list