on 06-12-2014 6:57 PM
I use Crystal Reports 11.5.12.1838. When I run the reports from the designer everything works fine but when I run them from VB6 the alerts are not firing. Any idea what might be a problem?
Thanks.
The search string 'crystal alert rdc' (search box in top right corner) returns the following KBA as the second hit:
1214573 - How do you use Report Alerts with the Report Designer Component?
Please see if that will help.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That worked. Thanks.
By the way, I had to change the code in the following way to trap the alert embeded in one of the subreports:
Private Sub CheckAlertsIn(rept As CRAXDDRT.report)
Dim reptSection As CRAXDDRT.Section
WaitForFinishLoading
For Each reptSection In rept.Sections
CheckAlertsInSection reptSection
Next
End Sub
Private Sub WaitForFinishLoading()
Do While Me.ReportViewer.IsBusy
DoEvents
Sleep 100
Loop
End Sub
Private Sub CheckAlertsInSection(sect As CRAXDDRT.Section)
Dim reptObject As Object
For Each reptObject In sect.ReportObjects
CheckIfIsSubreport reptObject
Next
End Sub
Private Sub CheckIfIsSubreport(reptObject As Object)
If reptObject.Kind = CRAXDDRT.crSubreportObject Then
CheckIfHasAlerts reptObject.OpenSubreport
End If
End Sub
Private Sub CheckIfHasAlerts(subreport As CRAXDDRT.report)
Dim alert As CRAXDDRT.ReportAlert
For Each alert In subreport.ReportAlerts
CheckAlert alert
Next
End Sub
Private Sub CheckAlert(alert As CRAXDDRT.ReportAlert)
Dim alertInstance As CRAXDDRT.ReportAlertInstance
For Each alertInstance In alert.AlertInstances
MsgBox alertInstance.AlertMessage, vbInformation, "Report Alert"
Next
End Sub
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.