lamontj Posted March 27, 2008 Share Posted March 27, 2008 I have designed a report that changes the background colour of certain cells depending on certain conditions. To do this, I set the field containing the value to be transparent, and then place another field with the desired background colur behind it, and only have the coloured be displayed when certain conditions are met. I designed this report in iReport 2.0.4, and when I run the report on JasperServer 2.1 from within iReport using the plugin, the colours appear properly. However, when I run the report on JasperServer through a web browser, the colours do not show up at all. Is there any reason why the colour would not be working in the web browser? Does JasperServer not support transparency when generating HTML reports? Is there a way to generate a URL that would point directly to the PDF version of the report, rather than the HTML version? (this would be the ideal solution) Link to comment Share on other sites More sharing options...
lucianc Posted March 28, 2008 Share Posted March 28, 2008 The HTML exporter does not export overlapping elements, see this FAQ. You can use conditional styles to change the background of an element when certain conditions are met. HTH,Lucian Link to comment Share on other sites More sharing options...
lamontj Posted April 4, 2008 Author Share Posted April 4, 2008 Thank you very much for the information :) One last little question I have... I've discovered that you can generate a PDF directly from the URL by adding "&output=pdf" to the end of the URL. However, this seems to always open the report in a new window of Adobe Reader, rather than integrating reader into the browser as it does when you click the PDF link from the HTML report. Any way to get the PDF to open in the browser when you access it directly from the URL? I've checked Reader's and Internet Explorer's settings already, and they don't seem to be the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now