How do we import the listener events of LibreOffice writer in Visual Basic 6? RRS feed

  • Question

  • I am trying to implement a listener event's in Visual Basic 6 for LibreOffice writer. I have referred this following code  


    set xContext = objServiceManager.getPropertyValue( "DefaultContext" ) set xCoreReflection = xContext.getValueByName( "/singletons/com.sun.star.reflection.theCoreReflection" ) set xClass = xCoreReflection.forName( "com.sun.star.document.XEventBroadcaster" ) set xMethod = xClass.getMethod( "addEventListener" )   dim invokeargs(0) invokeargs(0) = myListener   set value = objServiceManager.Bridge_GetValueObject() call value.InitInOutParam("[]any", invokeargs) call xMethod.invoke( objDocument, value )

    from the link https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events

    I am not able to understand the implementation of the listener event from the code.

    Can anyone please help over the implementation?

    Wednesday, November 1, 2017 7:21 AM

All replies

  • Hello,

    When creating your question there is a banner indicating this forum is for VB.NET, not VB6. Use the link below for a VB6 forum.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Proposed as answer by IronRazerz Wednesday, November 1, 2017 9:38 AM
    Wednesday, November 1, 2017 8:54 AM