|
|
|
BlueCielo Meridian Enterprise 2012 Developer's Guide | BlueCielo ECM Solutions |
The sample code below demonstrates how to invoke synchronization between the database properties and the actual document.
' Synchronize properties from file to database
InvokeEDMUICommand doc, AMIV_PROP_FILE2BASE
' Synchronize properties from database to file
InvokeEDMUICommand doc, AMIV_PROP_BASE2FILE
' Synchronize references (from file)
InvokeEDMUICommand doc, AMIV_REFS_FILE2BASE
Public Sub InvokeEDMUICommand(ByVal CurrentObject As Object, ByVal command As AMEDMUI.AMEDMITEMS_VERBS)
On Error GoTo error_handler
' Create the AMEdmItemsUI instance
Dim ui As New AMEdmItemsUI
Dim menu As IAMEdmItemsUIMenu
Dim pers As IAMEdmItemsUIPersist
' Initialize the AMEdmItemsUI object
Set pers = ui
pers.Init CurrentObject, 0, Nothing
' Invoke the command on the IAMEdmItemsUIMenu interface
Set menu = pers
menu.InvokeCommand hWnd, command
Set menu = Nothing
Set pers = Nothing
Set ui = Nothing
Exit Sub
error_handler:
MsgBox Err.Description
End Sub
Related information
Copyright © 2000-2012 BlueCielo ECM Solutions |