hi guys am trying create a multiple reports using a single report viewer.
can this be done, if yes can u give me a clue on hw to go on about it. i have done everything its just the part of having multiple reports
here is a sample of my code hope it can help.
the report am using is the RDLC report that is created by report viewer.
'Catch ex As Exception
i try same thing at my end , and i works , i use this code
'first make a madule to store global vaiable name ReportName as string
now place two or more buttons on the form , and place this code on the click event of the button
ReportName = ""
ReportName = "ReportA" ' this code is on ButtonA click Event
ReportName = "ReportB" 'This code is on buttonB click Event
'now use this code on the load event of the form having report viewer
select case ReportName
ReportViewer1.ReportSource = New ReportA
ReportViewer1.ReportSource = New ReportB
Hope this time this will works for you
if Your prob is solved mark this thread solved :)
Here's a solution that could help you. It will be efficient but quite not perfect.
If you are using crystal reports with Visual studio 2010. You could try creating multiple report headers. But you should adjust your headers size so that they fit in one page.
There's another solution I found here. I hope it helps.