Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Getting System.NotSupportedException: Not supported within subreports.

$
0
0

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


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>