Skip to Content
0
Former Member
Jun 08, 2009 at 03:22 PM

Exception getting report interface

34 Views

I'm trying to get details of reports in C# (.Net 1.1), but keep hitting the same error. I can get a list of reports / folders, but when I try to get a Report object to retrieve details I get an exception.

I'm using code that is virtually identical to that posted here by other people:

boReports = boInfoStore.Query("Select * From CI_INFOOBJECTS Where SI_ID = XXX and SI_KIND = 'CrystalReport'");
 
CrystalDecisions.Enterprise.InfoObject boReport = boReports[1];
 
oldrptObject = new CrystalDecisions.Enterprise.Desktop.Report(boReport.PluginInterface);

On creating the Report objects I get an InvalidCastException with the message "No such interface supported". Browsing the boReport object in the debugger shows an invalid cast exception on the PluginInterface property.

My server has a full Business Objects 11 (3.1) installation; the client machine I'm developing on has just the .Net / COM components.

Thanks in advance if anybody has a suggestion.