Hello.I have some Word VBA code which hooks the PostOnOK event of the iManageExtensibilityObject, so it fires when someone clicks OK in the New Profile dialog. (ie. After saving a new document for the first time.)Is there some way I can get the new document number that's being assigned to the document being saved? The event handler gets a IMANEXTLib.NewProfileDlg object which has a heap of information about what the user's just entered, but as far as I can tell it doesn't actually have the document number.Thanks for any help.Mike.
Get the imported document object from the "ImportedDocument" ContextItem, like so:Private Sub objImportCmdSink_PostOnOK(ByVal pMyInterface As Object) Dim objDocument As IManage.NRTDocument Set objDocument = objImportCmdSink.Context("ImportedDocument")End Sub