Skip to Content
0
Former Member
Dec 09, 2008 at 10:18 AM

Open unmanaged reports with error "'bobj' is undefined"

37 Views

I use the method below to open report from CReports server:

privatevoid OpenSampleReport_unmanagedRAS()

{

ISCDReportClientDocument rcd = new ReportClientDocumentClass();

// Set the file path of the sample report.

string sampleReportPath = @"C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\Samples\en\Reports\Demonstration\World Sales Report.rpt";

object path = (object)sampleReportPath;

// Set the name of the RAS server and open the report.

rcd.ReportAppServer = "be-avis2008:1566";

rcd.Open(ref path, (int)CdReportClientDocumentOpenOptionsEnum.cdReportClientDocumentOpenAsReadOnly);

// Set the report source of the Crystal Report viewer to the instance of the report.

crystalReportViewer.ReportSource = rcd;

}

However it throws error "Microsoft JScript runtime error: 'bobj' is undefined" and then show "Culture ID 1024 (0x0400) is not a supported culture. Parameter name: culture " on the page, also

anyone know why?