I am looking for a way to create either a report book or a report with several sub reports each of which have their own parameters. All my current reports are standalone and I don't use a report viewer. I am using the new sqlDataSource and setting the parameters in Public Properties like this:
I pass the parameter from codebehind of a button like this:
So I have several reports that my users have to print every week but they want to be able to just click one button and have all the reports print at once. My problem is that I doon't know how to pass parameters to the individual reports. Does anyone have a solution to this? Thanks for any help.
Public Property setSiteID() As Integer |
Get |
Return CInt(Me.SqlDataSource1.Parameters.Item("@SiteID").Value) |
End Get |
Set(ByVal siteID As Integer) |
Me.SqlDataSource1.Parameters.Add("@SiteID", DbType.Int32, siteID) |
End Set |
End Property |
Dim tF As New TelerikFunctions |
Dim strSite As String = ddlSite.SelectedValue.ToString |
Dim rv = New D007RwpSchedule() |
rv.setSiteID = strSite |
tF.ExportToPDF(rv) 'The class tf exports the report to pdf |