I want to export / print on-demand subreports.
So I set the EnableOnDemand-property of the SubreportObject to false.
This only works, if the subreport has no linked parameter to main report.
The following scenario happens, if the main report has SubreportLinks:
1. SubreportObject.EnableOnDemand = false;
2. If the subreport has a linked parameter an "invalid field name"-exception is thrown.
3. Then I call CrystalReportViewer.RefreshReport()
4. The parameter dialog apears and asks for the linked parameter.
How can I restore the SubreportLinks?
Or is there another solution for exporting on-demand subreports?
Thanks in advance.
John