Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] addScroptableObject to Viewer


Can you help me please?  
I create Application based on RCP Application Mail.   When i try to run my report task in Navigation View it is error 
ClassCastDefinition .......  ChartReportItemFactoryImpl

i try such code: in CreatePartControl of NavigationView

                EngineConfig config=new EngineConfig();
  config.setEngineHome("C:\\eclipse\\plugins\\org.eclipse.birt.report.viewer_1.0.1\\birt";
  
  HTMLEmitterConfig hc=new HTMLEmitterConfig();
  HTMLCompleteImageHandler imagehand=new HTMLCompleteImageHandler();
  hc.setImageHandler(imagehand);
  config.setEmitterConfiguration(HTMLRenderOption.OUTPUT_FORMAT_PDF,hc);
  ReportEngine engine=new ReportEngine(config);
  System.out.println("движок создан.";
  IReportRunnable report=null;
  
  String name="c:\\tmp\\test_report.rptdesign";
  
  
  
  try {
   System.out.println("Перед открытием отчета";
   report=engine.openReportDesign(name);
   System.out.println("После открытия отчета";
  } catch (EngineException e1) {
   System.out.println("Ошибка при открытии отчета";
   System.out.println(e1.getMessage());
   
   e1.printStackTrace();
  }

Do you know what reason of the error, an may be know how to solve this problem.   Thank you very much.



Back to the top