i want to print a report (designed with seagate Crystal Reports) using the i-net CrystalClear Java Report Engine. Does anybody know how to program these engine?
I have already tryed it with the following code but i always get the error: java.lang.RuntimeException: This method is not supported anymore. Please use the method "setReportData" instead.
..........
// create the report viewer ReportViewerBean viewer = new ReportViewerBean(); viewer.init(); viewer.setHasGroupTree(false); //don't show a group tree
// Set the report file String strUrlPar = "file:C:Reports/Report.rpt"; eng.setDll("pdsdb2.dll"); eng.setConnection(getDBConnection()); eng.setUser(Anmeldedaten()); eng.setPassword(Anmeldedaten.getPwd()); eng.setReportFile(strUrlPar); eng.setPrompt(str,0);
viewer.setEngine(eng);
eng.execute();
// start the viewer thread viewer.start();
// Print the report without any user interaction viewer.printView(false);