Results 1 to 4 of 4

Thread: Crystal Reports, How to get an event when it's done printing ?

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Crystal Reports, How to get an event when it's done printing ?

    I need to know when the report is done printing, right now i'm using this code:
    VB Code:
    1. Dim application As CRAXDRT.application
    2.  Dim Report As CRAXDDRT.Report
    3.  Dim ReportFileName As String
    4.  Dim ReportName As String
    5.  
    6.  Set application = New CRAXDRT.application
    7.  
    8.  ReportFileName = gblAppPath & "Reports\Label.rpt"
    9.  Set Report = application.OpenReport(ReportFileName)
    10.  Report.PrintOut (False)
    11.  
    12.  ' ** WAIT UNTIL REPORT IS DONE PRINTING ***
    13.  
    14.  Set Report = Nothing
    15.  Set application = Nothing
    16.  
    17.  ' Some other code here...

    Another question:
    How do I know what was printer and what not, in case the printing was cancelled ?
    Last edited by CVMichael; Jan 24th, 2007 at 09:01 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width