vasiliz Posted August 2, 2010 Share Posted August 2, 2010 Hi,I'm currently doing a POC for a client on Jasperserver Pro. This client needs their company logo to be displayed on the ad hoc reports that they create. I'm able to create a new style for them and alter the .css file in order to display a company logo image in the title during preview when the report is built. But seeing that when the report is run it uses the style's .jrxml file I am stuck when it comes to displaying the logo on the report when it is executed.Is there a way to add an image to an ad hoc report?Is there a way to alter the style .jrxml file to add a image in the report?ThanksSamuel Link to comment Share on other sites More sharing options...
tmatyashovsky Posted August 2, 2010 Share Posted August 2, 2010 Hi, The quickest solution which comes to my mind:1. Upload company logo to the repository. For instance, it will be accessible via repo:/Images/company_logo.jpg2. Edit report created using AdHoc. Use iReport and connect to existing JS instance. Add image component, set repo:/Images/company_logo.jpg as image expression. Save report.3. Using iReport upload updated report to JS.4. Run report using JS. Hope that will help. Best regards,Taras Matyashovsky Link to comment Share on other sites More sharing options...
vasiliz Posted August 3, 2010 Author Share Posted August 3, 2010 Thanks Taras, It looks like this is as close as I will get to a solution. I would however have prefered if the client does not have to use iReport when creating ad hoc reports - it seems pointless if they still have to use iReport to get an ad hoc report done. Does anyone know of another way to add an image to an ad hoc report? Even if it is not automatically done by styles. Regards,Samuel Link to comment Share on other sites More sharing options...
sshrestha Posted July 24, 2013 Share Posted July 24, 2013 Since this posting, has there been any new features that allows user to add logo/image via ah-hoc UI, instead of having to go to iReport? As mentioned here, we'd also prefer that users not have to use iReport, as we're talking about high-level users with no/little knowledge of report development tools. The whole point of adhoc is to avoid complex dev tools, so such formatting features would be very useful. Anyone know of a solution? 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