One of our customers wanted to see some suggested CSS changes on the fly on actual reports. The wanted it on the production machine…
First we copied the Demo file to a new folder on the OC4J webserver:
On the demo report we added a static textbox:
Put in the reference to the alternate stylesheets:
<link rel="stylesheet" type="text/css" title="Standard"
<link rel="alternate stylesheet" type="text/css" title="Red"
<link rel="alternate stylesheet" type="text/css" title="Green"
<meta http-equiv="Default-Style" content="Standard">
If you now open the report in FireFox and goto view => page style
And select the style you want to demo:
Yes this trick will only work in FireFox (View | Page Style), Opera (View | Style), Konqueror(View | Use StyleSheet), Workarounds for IExplorer are widely spread on the net. Haven’t found it in Chrome Yet
Till Next Time