Copy a document

The following diagram shows the sequence of events initiated by the user request to copy a document. In the BeforeCopyDocument event, the user interaction can be canceled. To verify if the opening module is the current module please use the Project.ScriptExecutionMode property.

Note If you edit a batch during processing by copying a document or page this does not copy any existing custom storage strings. You can use the AfterCopyDocument or AfterCopyPage events to set them via script.

A visual representation of the Copy Document event sequence.