Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
OffsiteDMS?
azad
Hi,
I need to initialize a command object in imanext2.dll. The context item of the command object requires an item called OffsiteDMS. I've searched all the documents in SDK, but couldn't figure out how to create an OffsiteDMS object. Is this same as ManDMS or NRTDMS?
Any help would be appreciated...
Thanks
Find more posts tagged with
Comments
jny
It's not the same, but you should be able to just create a new NRTDMS/ManDMS object to pass into the command. The source code will know that it's offsite if you are offline and have offsite installed.
azad
Thanks jny for replying... however my code still dont work. I'm trying to execute the imanext2.dll's OffsiteDetailsCommand. The three context items required are the NRTDMS, OffsiteDMS and SelectedImanSession. I have added all the required references and namespaces. I also have Offsite installed in my machine. Still I get an error saying that command failed. I would be happy if you could point out what is wrong in the following code.
Public Class Form1
Dim context As New ContextItems
Dim userSession As IManSession
Dim dmsServer As New NRTDMS
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
userSession = dmsServer.Sessions.Add("10.213.1.28")
userSession.Login("username", "password@123")
Dim cmd As OffSiteDetailsCmd = New OffSiteDetailsCmd()
With context
.Add("NRTDMS", dmsServer)
.Add("OffsiteDMS", dmsServer)
.Add("SelectedIManSession", userSession)
End With
cmd.Initialize(context)
cmd.Update()
cmd.Execute()
MsgBox(context.Item("ImanExt.Refresh").ToString())
End Sub
End Class
azad
Finally I got this problem solved.
I had to assign the offsiteDMS item with a new object for Com.Interwoven.MobileMode.DMS(). Also there was a confusion with the different versions of Interop.imanage dll.
wolfixx
Hi Azad,
I also have any issue with different versions of Interop.imanage dll when creating an instance o a Offsite Object like
Dim oOffDocument As Com.Interwoven.MobileMode.Document
How did you fix this?
Thx
Wolfgang
Reference required to assembly 'Interop.IManage, Version=8.2.0.0, Culture=neutral, PublicKeyToken=601623aa95e741f5' containing the implemented interface 'Com.Interwoven.WorkSite.iManage.IManObject'. Add one to your project. C:\work\1.2\ZIPandEmail.vb 298 18 WSZIP
azad
Hi,
I found two Interop.Imanage dll with different 'Runtime version'. The namespaces within the dll are also different. Try using the dll with namespace 'Com.Interwoven.Worksite.Imanage' with offsite functions.