Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [birt-report-designer-dev] OdaDataSetHandle ref forexisting.rptdesign template

Doh. I guess it was a long day! Grrrr I never spotted that. Thanks :-)

Any BIRT API change we make sure we do take care of the backward
compatibility issue. For your code, I think maybe you should write:

DataSetHandle dso = report.findDataSet('TestSet')
The OdaDataSetHandle cannot be casted to a  DataSourceHandle.

-----Original Message-----
From: birt-report-designer-dev-bounces@xxxxxxxxxxx
[mailto:birt-report-designer-dev-bounces@xxxxxxxxxxx] On Behalf Of Tom
Sent: Friday, May 30, 2008 7:52 AM
To: birt-report-designer-dev@xxxxxxxxxxx
Subject: RE: [birt-report-designer-dev] OdaDataSetHandle ref
forexisting.rptdesign template

EngineConfig config = new EngineConfig();
IReportEngineFactory factory = (IReportEngineFactory)
IReportEngine engine = factory.createReportEngine(config)
IReportRunnable design =
ReportDesignHandle report = (ReportDesignHandle) design.getDesignHandle();
DataSourceHandle dso = report.findDataSet('TestSet') // your suggestion

this gives:

Unexpected exception: Cannot cast object

'' with class
'' to class
View this message in context:
Sent from the Eclipse BIRT - Report Designer - Dev mailing list archive at

Back to the top