Print Event — Event Procedures Example
The following example checks the PrintCount argument to determine the number of times the Print event has occurred. If it has occurred more than once, the Print event is canceled for the section.
To try the example, add the following event procedure to a report that contains a section named CustomerDetail.
Private Sub CustomerDetail_Print(Cancel As Integer, _
PrintCount As Integer)
If PrintCount > 1 Then Cancel = True
End Sub