Hello:
I am getting this exception:
System.NotSupportedException: Not supported within subreports.
at CrystalDecisions.ReportAppServer.SubreportWrapper.get_IsOpen()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_IsLoaded()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportClientDocument()
....
on this line:
CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables = reportDocument.ReportClientDocument.DatabaseController.Database.Tables;
where reportDocument is actually a subreport of the main report. I have the following code:
foreach (ReportDocument subreport in reportDocument.Subreports) | |
{ | |
SetDbLogonForReport(connectionInfo, subreport); | |
} |
The code that fails is in the SetDbLogonForReport.
I am basically trying to loop through all the tables in the subreport and set the table location.
Any ideas on how to workaround the exception? I am using CR 13 SP14. The application tries to run a report with a subreport.
Thanks