473,387 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Responding to an event?

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(CrystalRe portViewer1_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(o bject,
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

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 17 '05 #1
2 2297
You have declared the event handler incorrectly.

private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.RefreshEventHandler w)
{
//event code
}

should be

private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.ViewerEventArgs eventargs)
{
//event code
}
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Mobius498" <mo*******@yahoo-dot-com.no-spam.invalid> wrote in message
news:42**********@127.0.0.1...
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(CrystalRe portViewer1_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(o bject,
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

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 17 '05 #2
You have declared the event handler incorrectly.

private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.RefreshEventHandler w)
{
//event code
}

should be

private void CrystalReportViewer1_ReportRefresh(object sender,
CrystalDecisions.Web.ViewerEventArgs eventargs)
{
//event code
}
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Mobius498" <mo*******@yahoo-dot-com.no-spam.invalid> wrote in message
news:42**********@127.0.0.1...
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(CrystalRe portViewer1_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(o bject,
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

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jonathan | last post by:
Running IIS 5.0. Running both .NET and ASP pages. Every several weeks all the ASP pages stop responding. Nothing is displayed. No events show up in event logs showing that the server is having...
0
by: Michael Bourgon | last post by:
I've been having the same problem for 2 weeks now. If anyone has any ideas, I'd love to hear them. We are using both SQL and Windows Authentication. I was running a Profiler Trace at the time,...
13
by: long5120 | last post by:
I am trying to use webpage with javascript to check if a web server is responding. I was thinking of using 2 frames. Frame1 will have the site, and the Frame2 will be a status bar (not really...
2
by: Nils Hedström | last post by:
Today my stateserver (running at the same computer at the web-server) suddenly stopped responding (after 10 days working perfectly). I did not see any entry in the eventlog indicating that the...
1
by: AT | last post by:
I am having problem with beta 1 asp.net 2.0 I have 3 development stations xp /pro On 2 of them it is working just fine on 3 rd -this event not fired!!!! Problem description: I placed gridview...
3
by: scs | last post by:
Has anyone experienced the situation where control buttons stop responding to click event handlers? I have a form with 8 buttons that were responding to their click events but are not anymore. Does...
1
by: Kevin Raleigh | last post by:
I am trying to get a working knowledge of ASP but to do this I need to get my www service working. I tried starting it and nothing but this error message: The authentication service is unknown ...
11
by: =?Utf-8?B?QWNoaWxsZXNfX19f?= | last post by:
Im finding problem with this code. When i try to display the newindow, its not responding. It does create the new window, but doesnt respond at all. Just stays blank. I'm fairly new to c#(just a...
6
by: ~john | last post by:
I have binary files stored in a SQL Server table that I want the user to be able to download from an aspx webpage. The files are displayed on the form as "LinkButtons". When the link is clicked the...
7
by: mills.toby | last post by:
We have a Windows 2003 Server, serving an asp.net (2.0) website. Recently the website stopped responding. When trying to access the website, no response is received at all. This includes when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.