cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to a report in VB.NET 2005 prior to SetDataSource

Former Member
0 Kudos

I am using VB.NET 2005 to pass parameters into a report that has an XML datasource. If I pass the parameters after calling the SetDataSource method on the report object everything works fine. However, if I try to pass the parameters prior to calling SetDataSource none of the parameters make it into the report (prompt appears asking for the user to input parameters). The parameters are NOT dependent on the report's datasource. Is it possible to pass parameters prior to calling SetDataSource?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

No, when the Set Data source function is called it clears the parameter values. We assume the parameters are connection dependant.

Is there a specific reason you want to se them first?

Former Member
0 Kudos

Yes, in our case the parameters are not dependent on the datasource. We wanted to place some of the report setup (setting up page headers, parameter, etc) in a separate thread, independent of the function that gathers our data, to speed up the report processing.

Answers (0)