cancel
Showing results for 
Search instead for 
Did you mean: 

How to Show Crystal Alerts on .NET CrystalReportViewer?

Former Member
0 Kudos

Hi,

We are using CR 2008 and publishing with .NET 2005. We included some Alerts in the crystal reports. They run fine when I run them in Crystal designer. But when showing on .NET CrystalReportViewer control, they won't trigger.

What might be the reason for this?

Thanks

Rama

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Alerts do not work in the CR SDK - only in BOE or the designer. Perhaps a good post for the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

0 Kudos

Also note, these are different than BOE Events. BOE events are triggered on system files etc. CR Events are triggered on Forumlae.

Don

Answers (1)

Answers (1)

0 Kudos

Hi Rama,

I'm testing but I don't see how this will or if it is going to work...

Don

Former Member
0 Kudos

Don, Thank you for your help.

Thanks

Rama

0 Kudos

But then again... after some checking here's how to: ( for CR for VS 2010 )

Should be the same for Cr 2008. You have to use RAS.

rpt.Load(@"c:\customer\alerting.rpt");

rcd = rpt.ReportClientDocument;

Alerts alerts;

alerts = rcd.SearchController.GetTriggeredAlerts();

if (alerts.Count > 0)

{

foreach (Alert alert in alerts)

{

string alertinfo = string.Empty;

alertinfo = "Alert Name: " + alert.Name + "\n\r";

alertinfo += "Alert Message: " + alert.Message.ToString() + "\n\r";

alertinfo += "Alert Formula: " + alert.MessageFormula.Text.ToString() + "\n\r";

MessageBox.Show(alertinfo.ToString());

}

}

Thanks again

Don

PS - Thank you Dan P. for the code

Edited by: Don Williams on Jan 31, 2012 2:43 PM