I'm using Report Viewer at C# in WinForms. I have 3 database tables: Equipament, Sector and History, I also have 3 Report.rdlc, The MAIN is the ReportEquipament and the other two subreport are ReportSector and ReportHistory. I already know how to fill the ReportSector, what I want to do is to pass the idSector from the ReportSector, so I can call a procedure at the SQL Server database and search all the History with this Sector ID, and show the data at the ReportHistory. I have no idea on how to do it. I new with ReportViewer and this is my first time doing Reports.
PS: I know how to do the procedure, just don't know how to use it.
Thanks.
Jonas.
Let me try to explain better:
I search for a specific Equipament, and that Equipament passed for many Sectors, and while he was at this sector he had problems, and this problems are related to the Sector.
What I want is something like that:
Equipament: X
Sectors: (Here the ID of the Equipament is passed to find the Sector that he has)
Sector: X (here the ID of this Sector is passed to the Subreport "Problem") Problems: (with the ID of the Sector I search all the problems at this sector) Problem: X Problem: Y
Sector: Y (here the ID of this Sector is passed to the Subreport "Problem") Problems: (with the ID of the Sector I search all the problems at this sector) Problem: X Problem: Y