Jump to content

Search the Community

Showing results for tags 'array openoffice'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hello I would pass an array of object to OpenOffice API, but this fails, I think for incompatibility of array declaration. This is a ooBasic fragment that I would "convert" in AutoIt: ... Dim aProps(0) As New com.sun.star.beans.PropertyValue ' get configuration of the file history oCP = GetProcessServiceManager().createInstanceWithContext( _ "com.sun.star.configuration.ConfigurationProvider", GetDefaultContext() ) aProps(0).Name = "nodepath" aProps(0).Value = "/org.openoffice.Office.Common/History" oCUA = oCP.createInstanceWithArguments( _ "com.sun.star.configuration.ConfigurationUpdateAccess", aProps ) ... This Autoit fragment fails: Global $ooF = ObjCreate("com.sun.star.ServiceManager") $oCP = $ooF.createInstance("com.sun.star.configuration.ConfigurationProvider") Global $ooBeans[1] $ooBeans[0] = $ooF.createInstance("com.sun.star.beans.PropertyValue") $ooBeans[0].Name = "nodepath" $ooBeans[0].Value = "/org.openoffice.Office.Common/History" ; the underlying statement generates an error: (0x80020005) Type mismatch $oCUA =$oCP.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess", $ooBeans[0]) ; the underlying statement generates a syntax error: The requested action with this object has failed. msgbox(0,"",$ooBeans[0].Value) It is possible work around? Thanks John Rossati
×
×
  • Create New...