[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

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?
0
holemania
Asked:
holemania
1 Solution
 
jpaulinoCommented:
Microsoft Reports doesn't have events and that way you cannot do that (not that I know).

Is not another way you can do that?
0
 
mlmccCommented:
Which reporting tool are you using?

mlmcc
0
 
mgfranzCommented:
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CodeCruiserCommented:
If you are using MS reporting, there is a Hyperlink event on the report viewer

http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportviewer.hyperlink.aspx

0
 
holemaniaAuthor Commented:
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.
0
 
CodeCruiserCommented:
Did you try handling the hyperlink event? What's returned in the e argument?
0
 
holemaniaAuthor Commented:
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.
0
 
holemaniaAuthor Commented:
Provide some useful info, but took a different approach.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now