Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

java sdk: reportObjectNotFound Error when trying to change connectioninfo for subreports

$
0
0

Hi,

we followed guidance of the sdk documentation for "To set subreport logon information". This is our code:

 

SubreportController subreportController = clientDoc.getSubreportController();

IStrings subReports = subreportController.querySubreportNames();

 

 

//Loop through all the subreports on main report

for (int i = 0; i < subReports.size(); i++) {

  String subreportName = subReports.getString(i);

  // the following line throws exception on each and every subreport: com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Berichtobjekt kann nicht gefunden werden.---- Error code:-2147213285 [CRSDK00000685] Error code name:reportObjectNotFound

  IDatabase subreportDatabase = subreportController.getSubreportDatabase(subreportName);


  tables = subreportDatabase.getTables();

  for (int j = 0; j < tables.size(); j++) {

    Table oldTable = (Table) tables.getTable(j);

    Table newTable = changeTableInfo(oldTable, logonPb, reportConfig);

    subreportController.setTableLocation(subreportName, oldTable, newTable);

  }

}

 

This worked for cr 2008 sdk but stopped working with cr 2013 sdk. Are there any changes in handling subreports with the new sdk?

 

thomas


Viewing all articles
Browse latest Browse all 4814

Trending Articles



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