Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Opening a "OFF-LINE" document using OpenCmd command
ChrisWhite
My Firm insists on Front-end profiling documents that are stored in Worksite, as a result there is a front-end VBA application that creates a document, stores it in Worksite and then opens the document in MS Word. However, they now want this feature to be avaialable "Off line", I have managed to create the document in "Off-line" Worksite, but am unable to open the resultant document in MS word. I could use the open command in word via the VBA but that does not check-it out and causes an error whenit is closed.
Any ideas would be welcome.
The code that I use to open in "Connected" mode is as follows:
Private Sub MY_Edit_Worksite_Document_Connected(my_Document As IManage.NRTDocument)
Dim my_NRTDMS As IManage.NRTDMS
Dim my_OpenCmd As IMANEXTLib.OpenCmd
Dim my_VariantArrDocs(0) As IManage.NRTDocument
Dim my_CheckedOutDocumentName As String
Set my_NRTDMS = Application.COMAddIns("iManO2K.AddinForWord2000").Object.context.Item("NRTDMS")
Set my_VariantArrDocs(0) = my_Document
Set my_ContextItems = New IMANEXTLib.ContextItems
my_ContextItems.Add "NRTDMS", my_NRTDMS
my_ContextItems.Add "SelectedNRTDocuments", my_VariantArrDocs
my_ContextItems.Add "iManExt.OpenCmd.Integration", True
Set my_OpenCmd = New IMANEXTLib.OpenCmd
my_OpenCmd.Initialize my_ContextItems
my_OpenCmd.Update
my_OpenCmd.Execute
my_CheckedOutDocumentName = my_ContextItems.Item("iManExt.OpenCmd.ING.FileLocation")
BlnReFresh = mr_ContextItems.Item("IManExt.Refresh")
my_ContextItems.Remove "IManExt.Refresh"
Documents.Open FileName:=my_CheckedOutDocumentName
End Sub
Chris
Find more posts tagged with
Comments
There are no comments yet