WorkSite SDK - 无法创建 ActiveX 组件

发布于 2024-11-19 07:54:19 字数 1341 浏览 3 评论 0原文

我正在尝试学习如何开发应用程序以与 Autonomy WorkSite 8.5 服务器交互,并找到了 WorkSite DB 管理员 COM 开发人员参考指南,它对我有所帮助,我现在可以看到可以与之交互的对象类型,但是,我在展示一个团体的成员时遇到了困难。

我的代码如下。这是针对 VB.NET Windows 窗体应用程序的。

Dim ObjNRDMS As IMANADMIN.NRTDMS
Dim ObjSessions As IMANADMIN.NRTSessions
Dim ObjSession As IMANADMIN.NRTSession
Dim ServerName As String
ServerName = "SERVERNAME"
' Create the NRTDMS object
ObjNRDMS = GetObject("IMANADMIN.NRTDMS")
' Add the Server to the NRTSessions object and
' get a NRTSession object for the server
ObjSessions = ObjNRDMS.Sessions
ObjSessions.Add(ServerName)
ObjSession = ObjSessions.Item(1)
' Login to the Server
ObjSession.TrustedLogin()

Dim ObjDBs As IMANADMIN.NRTDatabases
Dim ObjDB As IMANADMIN.NRTDatabase
Dim ObjGroup As IMANADMIN.NRTGroup
' ObjSession is a previously defined NRTSession object
' Get the first database defined for ObjSession object
ObjDBs = ObjSession.Databases
ObjDB = ObjDBs.Item(1)
ObjGroup = ObjDB.GetGroup("TEST")
txtOutput.AppendText(ObjGroup.Users.ToString) 

但是,当我在 Visual Studio (2008) 中调试此代码时,出现错误:

无法在 `ObjNRDMS = 行创建 ActiveX 组件 GetObject("IMANADMIN.NRTDMS")

我已运行 regsvr32 iManAdmin.dll。

任何人都可以对这个问题提供任何帮助吗?

我在 DB Admin COM 指南的第 21 页上读到,它提到从命令提示符执行 iManAdmin - REGSERVER,但是这对我来说不起作用,因为 Windows 报告该文件没有打开程序集。

I am attempting to learn how to develop applications to interact with the Autonomy WorkSite 8.5 server and have found the WorkSite DB Administrators COM Developers Reference Guide, it has helped me somewhat and I can now see the types of objects that I can interface with however, I am stumbling on showing the members of a group.

My code is as follows. This is for a VB.NET Windows Forms application.

Dim ObjNRDMS As IMANADMIN.NRTDMS
Dim ObjSessions As IMANADMIN.NRTSessions
Dim ObjSession As IMANADMIN.NRTSession
Dim ServerName As String
ServerName = "SERVERNAME"
' Create the NRTDMS object
ObjNRDMS = GetObject("IMANADMIN.NRTDMS")
' Add the Server to the NRTSessions object and
' get a NRTSession object for the server
ObjSessions = ObjNRDMS.Sessions
ObjSessions.Add(ServerName)
ObjSession = ObjSessions.Item(1)
' Login to the Server
ObjSession.TrustedLogin()

Dim ObjDBs As IMANADMIN.NRTDatabases
Dim ObjDB As IMANADMIN.NRTDatabase
Dim ObjGroup As IMANADMIN.NRTGroup
' ObjSession is a previously defined NRTSession object
' Get the first database defined for ObjSession object
ObjDBs = ObjSession.Databases
ObjDB = ObjDBs.Item(1)
ObjGroup = ObjDB.GetGroup("TEST")
txtOutput.AppendText(ObjGroup.Users.ToString) 

However, when I debug this code in Visual Studio (2008), I get the error:

Cannot create ActiveX component at the line `ObjNRDMS =
GetObject("IMANADMIN.NRTDMS")

I have run regsvr32 iManAdmin.dll.

Can anyone offer any assistance on this problem?

I've read on page 21 of the DB Admin COM guide that it mentions to execute iManAdmin - REGSERVER from the command prompt, however this will not work for me with Windows reporting that the file does not have a open with program set.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧竹 2024-11-26 07:54:19

我最终通过使用 iManage 工作站点 Interop.iManAdmin.dll 解决了这个问题

I ended up resolving this issue by using the iManage worksite Interop.iManAdmin.dll

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文