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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to