About the document copy/move events

Some events occur when documents are moved or created as copied, derived, or replacement documents.

The events that occur for the document copy and move commands (in alphabetical order) are shown in the following lists in the sequence that they occur.

Copy, Paste, Derive, Replace event sequence

  • DocCopyMoveEvent_SelectTarget
  • DocCopyMoveEvent_PrepareCopy5
  • DocCopyMoveEvent_InitializeCopy1
  • DocCopyMoveEvent_InitializeDerive2
  • DocCopyMoveEvent_InitializeReplace3
  • DocGenericEvent_InitializeNewDocument
  • DocGenericEvent_InitializeCalculateFileName
  • DocCopyMoveEvent_BeforeCopyWithReferences4
  • DocCopyMoveEvent_BeforeCopy1
  • DocCopyMoveEvent_AfterCopy1
  • DocCopyMoveEvent_BeforeDerive2
  • DocCopyMoveEvent_AfterDerive2
  • DocCopyMoveEvent_BeforeReplace3
  • DocCopyMoveEvent_AfterReplace3
  • DocGenericEvent_BeforeNewDocument
  • DocGenericEvent_OnProperties6
  • DocGenericEvent_AfterNewDocument
  • DocCopyMoveEvent_AfterCopyWithReferences4
  • DocGenericEvent_TerminateCalculateFileName
  • DocGenericEvent_TerminateNewDocument
  • DocCopyMoveEvent_TerminateCopy1
  • DocCopyMoveEvent_TerminateDerive2
  • DocCopyMoveEvent_TerminateReplace3

Notes

  1. Copy and Paste commands only.
  2. Derive command only.
  3. Replace command only.
  4. Copy with References command and Derive with References commands only.
  5. Source document only.
  6. Except Paste command

Move event sequence

  • DocCopyMoveEvent_InitializeMove
  • DocGenericEvent_InitializeNewDocument
  • DocGenericEvent_InitializeCalculateFileName
  • DocCopyMoveEvent_BeforeMove
  • DocCopyMoveEvent_AfterMove
  • DocGenericEvent_BeforeNewDocument
  • DocGenericEvent_OnProperties
  • DocGenericEvent_AfterNewDocument
  • DocGenericEvent_TerminateCalculateFileName
  • DocGenericEvent_TerminateNewDocument
  • DocCopyMoveEvent_TerminateMove

Each of the document copy and move event procedures is described in the following topics.