BIRT: Dynamically choose CSS File

Options
Virgil Dodson
Virgil Dodson E admin
edited July 28, 2021 in Analytics #1
Simple BIRT report design that uses parameters and scripting to choose which CSS style sheet to import.<br />
The work happens in the initialize() method like below:
   dh = reportContext.getDesignHandle();
   cssh = dh.openCssStyleSheet(params&#91;"cssParam"].value);
   dh.addCss(cssh);
<br />
This example was created with BIRT 2.3.0
Warning No formatter is installed for the format ipb