M
Mobius498
Hi, i'm new to C# and i'm trying to respond to an event.
I'm using the CrystalReportViewer to display crystal reports on the
web and i need to know when a user clicks the refresh button so i can
reset the parameters.
this is what i have so far, and it's giving errors
protected CrystalDecisions.Web.CrystalReportViewer
CrystalReportViewer1;
this.CrystalReportViewer1.ReportRefresh += new
CrystalDecisions.Web.RefreshEventHandler(CrystalReportViewer1_ReportRefresh);
private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.RefreshEventHandler w)
{
//event code
}
it's a syntax error and it says:
Method Crystal1.View.CrystalReportViewer1_ReportRefresh(object,
CrystalDecisions.Web.RefreshEventHandler)' does not match delegate
'void CrystalDecisions.Web.RefreshEventHandler(object,
CrystalDecisions.Web.ViewerEventArgs)'
i've havent used events yet in c#, so i could be setting it up wrong
syntatically..
thanks
Posted at: http://www.groupsrv.com
I'm using the CrystalReportViewer to display crystal reports on the
web and i need to know when a user clicks the refresh button so i can
reset the parameters.
this is what i have so far, and it's giving errors
protected CrystalDecisions.Web.CrystalReportViewer
CrystalReportViewer1;
this.CrystalReportViewer1.ReportRefresh += new
CrystalDecisions.Web.RefreshEventHandler(CrystalReportViewer1_ReportRefresh);
private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.RefreshEventHandler w)
{
//event code
}
it's a syntax error and it says:
Method Crystal1.View.CrystalReportViewer1_ReportRefresh(object,
CrystalDecisions.Web.RefreshEventHandler)' does not match delegate
'void CrystalDecisions.Web.RefreshEventHandler(object,
CrystalDecisions.Web.ViewerEventArgs)'
i've havent used events yet in c#, so i could be setting it up wrong
syntatically..
thanks
Posted at: http://www.groupsrv.com