Applying a User Defined CSS to an HTML Result File
When you export a report to HTML format, a .css file will be generated automatically by Logi Report to control the appearance and layout of the result file. If you perform the export via the Server API, Logi Report allows you to apply your own .css file to the HTML result file.
See the main steps for applying a user defined CSS to the HTML result file of a report:
- Open the report in Logi Report Designer to specify the CSS selector in your own CSS for objects in the report as follows: select the object which you want to apply the CSS, then in the Report Inspector, specify the selector in your .css file as the value of the External CSS Class Selector property.
- Publish the report to Logi Report Server.
- Edit your JSP file that invokes the interface used to export the report to HTML format.
- Access the edited JSP file to export the report to HTML.
The demo JSP file ApplyUserCSS.jsp stored in <install_root>\help\samples\JSPSamples\ApplyUserCSS
is provided for your reference about the feature. You can copy the whole ApplyUserCSS folder to <install_root>\public_html\jinfonet
, then access the JSP via http://host:port/jinfonet/ApplyUserCSS/ApplyUserCSS.jsp
.