ReportViewer/GasReport Example

I want to incorporate the reportviewer window/container in my own app but it seems that I would need to have a specific container for each report I develop. I would like to create a more generic window/container that I could just pass a SQL statement and report object name to and it would display/print the report. But I can’t figure out how to pass the report object.

Any thoughts on how this can be accomplished?

– Rob

Create a constructor for your window and pass r As Report to it as an argument.

Thanks. I will give it a shot.