holemania
asked on
VB.NET - ReportViewer pass variable to windows form
I know that variables can be pass from windows form to a reportviewer as parameters. However, is it possible to do the opposite? I have some links in my report that when the user clicks, it would open the file. I want to pass the path of the file back to my windows form to keep track of what was being clicked on and who was clicking on that file.
I'm curious if this is even possible to track clicks from reportviewer and report that back to windows form as a variable? If so, how would I go about doing this?
I'm curious if this is even possible to track clicks from reportviewer and report that back to windows form as a variable? If so, how would I go about doing this?
Which reporting tool are you using?
mlmcc
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CodeCruiser, that might look like what I'm trying to do. Basically, I am passing a file path as a variable from the reportviewer back to the main windows form using vb.net. The example provided is somewhat vague on what I need to do.
I tried googling more about reportviewer hyperlink event, but not much came up. I did find some with using web forms, but still not clear. Any ideas or examples you can provide?
Basically when user click on a link, that link opens a file. I want to pass that link back to my windows application so that I can record which file was open by that user, time, and who the user is (info from windows login).
I got all that information except the ability to pass that one variable back to windows form. Any help is greatly appreciated.
I tried googling more about reportviewer hyperlink event, but not much came up. I did find some with using web forms, but still not clear. Any ideas or examples you can provide?
Basically when user click on a link, that link opens a file. I want to pass that link back to my windows application so that I can record which file was open by that user, time, and who the user is (info from windows login).
I got all that information except the ability to pass that one variable back to windows form. Any help is greatly appreciated.
Did you try handling the hyperlink event? What's returned in the e argument?
ASKER
Sorry, I'm not sure how to returned the argument on the example that was provided. I tried googling for some examples for a few days now without much luck on using hyperlink event.
Not sure what to do after declaring the eventhandler.
Not sure what to do after declaring the eventhandler.
ASKER
Provide some useful info, but took a different approach.
Is not another way you can do that?