我们如何在Visual Basic 6中导入LibreOffice writer的侦听器事件? [英] How do we import the listener events of LibreOffice writer in Visual Basic 6?

查看:108
本文介绍了我们如何在Visual Basic 6中导入LibreOffice writer的侦听器事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试在  Visual Basic 6中为LibreOffice编写器实现一个监听器事件。我已经提到了以下代码  

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 )

来自链接https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Document_Events

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?

推荐答案

 此论坛不适用于VB6,这是VB.Net的论坛。您需要在仍支持VB6的论坛中询问此信息,如下面的链接。这就是为什么  你的
上一篇文章
已从论坛中删除,Karen告诉你使用下面的论坛。

 This forum is not for VB6,  this is a forum for VB.Net.  You need to ask this in a forum that still supports VB6 such as the link below.  This is why your last post was removed from the forum and Karen told you to use the forum below.

Visual Basic 6及更早版本 - VB论坛


这篇关于我们如何在Visual Basic 6中导入LibreOffice writer的侦听器事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆