on 01-30-2012 11:43 PM
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
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rama,
I'm testing but I don't see how this will or if it is going to work...
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.