Hi,
For this you need to apply HTMLCSS to your report at runtime.
Following note may help you.
goal: How to apply a custom stylesheet in a report at runtime
HTMLCSS Limitations
-------------------
A report run with desformat=htmlcss cannot utilize a custom stylesheet (.css file). Reports uses an internal algorithm to apply the report template information to the htmlcss output and based upon the design-time template file
(.tdf). Of course, a template can be created that resembles the corporate style.This template would be applied automatically at runtime (when htmlcss is
selected).
HTML Approach
-------------
A customer style sheet can be applied at runtime using the following workaround for DESFORMAT=HTML output:
1) Copy the customer style sheet(.css file) to <DEVELOPER_HOME>
/tools/web60/html
2) Open the report properties sheet in the Builder
3) Click the button next to the "Before Report Value" under the "Report Escapes" section
4) modify the html as follows:
<html>
<title>This is the Emp Report</title>
<STYLE type="text/css">
<!--
@import url(
-->
</STYLE>
<body dir=&Direction bgcolor="#ffffff">
PLEASE NOTE the Style sheet restrictions (from the online help):
The following elements are not supported by HTML style sheet extensions:
o ellipses, arcs, polygons/polylines, and diagonal lines
o rounded rectangles (formatted as rectangles)
o arrows on lines
o dashes on lines or borders of objects
You can use this method if you specify desformat=html in the url for the cgi because it reads and applies the before report value. You may find this method more cumbersome than creating and applying a report template file (.tdf) to your report. You can create one .tdf file and apply it to many reports,so you wouldn't have to create it for each report.
XML Approach
------------
Another solution would be to create an XML Report Definition and apply it at
runtime using the customize= parameter in the url
(for example, customize=e:\myreports\emp.xml ).
Regards
Himanshu