Plex 2E

  • 1.  Ole Automation LibreOffice

    Posted May 12, 2015 03:08 AM

    Hello,

     

    so far i call Plex functions from Microsoft Word and Excel. This works without any problems.

     

    I have CA Plex r6.1 Build 43.029.

     

    I just check whether call Plex functions in LibreOffice is possible.

     

    The following error message occurs there:

       libreoffice ole automation plex fnc.png

     

    The corresponding source code:

     

    Sub Test

     

        Dim FncFileNme As String

        Dim FncImplNme As String

        Dim InParms(1) As Variant

        Dim OutParms(0) As Variant

     

        Set ObApp = CreateObject("ObRunOLE600RC.App")

        FncFileNme = "C:\Test\TestFnc.dll"

        FncImplNme = "TestFnc"

        Set MyFunc = ObApp.Function(FncFileNme, FncImplNme)

     

        InParms(0) = ""                

        InParms(1) = "TEST"

     

        MyFunc.Call InParms, OutParms

     

        Set MyFunc = Nothing

        Set ObApp = Nothing

     

    End Sub

     

    The error occurs in the following line:

     

    Set MyFunc = ObApp.Function(FncFileNme, FncImplNme)

     

    Can anybody help? Thanks.

     

    Best Regards,

    urbarobe



  • 2.  Re: Ole Automation LibreOffice

    Posted May 18, 2015 03:31 PM

    Is anyone able to help with the above question?

     

    Thank you