Bonjour,
J'aurai voulu avoir un coup de pouce pour réussir à générer, via du code java, un rapport créé sous Birt Designer sous le format .xsl.
L'erreur rencontrée est la suivante :
"org.eclipse.birt.report.engine.emitter.excel.layout.Page needOutputInMasterPage
ATTENTION: Excel page header and footer don't support html text."
Voici le code java qui exécuté :
//Partie initialisation
String repertoireCourant = System.getProperty("user.dir");
//Affectation du chemin vers la plateforme BIRT
String BIRT_HOME = repertoireCourant + "/runtime/ReportEngine";
EngineConfig engineConfig = new EngineConfig();
engineConfig.setEngineHome(BIRT_HOME);
ReportEngine engine = new ReportEngine(engineConfig);
IReportRunnable design = null;
design = engine.openReportDesign("C:/Users/L/workspace/A/reports/1.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask(design);
EXCELRenderOption options = new EXCELRenderOption();
options.setOutputFileName("C:/Users/L/workspace/A/reports/1.xls");
options.setOutputFormat("xls");
task.setRenderOption(options);
task.run();
task.close();"
Cordialement,
Partager