CorelDRAW X5 crashes when adding code to the "GlobalMacroStorage_DocumentAfterPrint()" event procedure

Our designers will be printing individual color separations to a Device Independent Postscript File. We want to capture the name of each color separation by executing the following code:

    Private Sub GlobalMacroStorage_DocumentAfterPrint(ByVal Doc As Document)
        Dim sColor as string
        sColor = ActiveDocument.PrintSettings.Separations.Plates(1).Color
        'Log the color separation name to a file...
    End Sub

(FYI: I am able to successfully write to a log file from within the "QueryDocumentPrint()" event procedure.)

CorelDRAW X5 crashes when I try to do almost anything in the "GlobalMacroStorage_DocumentAfterPrint()" event procedure.

Can anyone help?

Thanks,
Allan Kisner

Parents
  • Hello,

    Can anyone provide me with more information on accessing document print setting, at the time printing occurs? Specifically I need to get information about the color separations being printed (i.e.: color; name of PS file, ..).

    Thanks VERY much,
    Allan Kisner
Reply Children
No Data