I have several ssrs 2008 reports that I am calling from asp.net.
The reports all work fine when I run them in Visual Studio.
Also, the basic reports run fine when I call them from asp.net and pass parameters.
But if I call a report with a subreport from asp.net I get the error that the sub report can't be displayed.
In my asp.net code do I have to explicitly load the sub report and set its parameters?
Currently i am only loading the main report and setting the parameters -
rsExecService.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
rsExecService.ParameterValue parameters = new rsExecService.ParameterValue[urlParams.Length];
(more code not shown)
The sub report uses the same parameters so I assumed it would just inherit from the parent.