Jump to content
We've recently updated our Privacy Statement, available here ×

toonskies

Members
  • Posts

    9
  • Joined

  • Last visited

toonskies's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I actually solved this issue. When you import the .jrxml file into JasperReports Server, it doesn't add resources such as images etc. so you have to add them individually as resources. i.e.: when adding a jasper report as a resource, click the 'controls and resources' button and then in the 'Controls and resources' screen, you add your required resources, be they images, or sub report, basically anything your report (.jrxml file) needs. what i did was I added my image into the image folder, gave it a name, a resource id (the resource id is what the .jrxml file needs to reference in it's code. i.e. The .jrxml file is basically an xml file. the line in my xml was like this when it came from iReport: <imageExpression><![CDATA["coffee.jpg"]]></imageExpression> So seeing as the iReport doesn't bring resources with it on importation, there was no coffee.jpg to be found, so I first added it as an image resource in the main 'images' folder, then I had to change that line of xml to be the following: <imageExpression><![CDATA["repo:/images/coffee_bean"]]></imageExpression> Keep in mind that "coffee_bean" is actually the resource id of the image, so that get referenced, not the actual file name of the resource(image). So I'm guessing that in your case, you would add the sub report as a resource, take note of the resource id, then change the relative line of xml code accordingly. Hope that works for you or at least sets you on the right track.
  2. Any help greatly appreciated for the following error message I'm getting regarding my uploaded report in JasperReports Server not being able to open associated image. I get the following error message after clicking on my report: ----------------------------------------------------------------------Error Messagenet.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : repo:/images/coffee.jpg Error Tracenet.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL : repo:/images/coffee.jpg at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:138) at net.sf.jasperreports.repo.RepositoryUtil.findInputStream(RepositoryUtil.java:186) at net.sf.jasperreports.repo.RepositoryUtil.getBytes(RepositoryUtil.java:202) at net.sf.jasperreports.engine.JRImageRenderer.getInstance(JRImageRenderer.java:141) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:498) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:441) at (etc etc...) ----------------------------------------------------------------------The image is in the images folder and i've added the image as a resource within the report, so I don't know what else (if anything) I need to do.
  3. Thanks, yeah that makes perfect sense. I eventually came to that conclusion myself from reading the pdf manuals. As it stands, I've created a report in iReport and add it as a JasperReport resource in a sub folder of the Reports main folder. I imported the .jrxml file and it was added succesfully. I have also added the JDBC data source in the main Data Sources folder that is associated with the report I imported. However, when I click on the report, it opens a page for the report, but there is just text that says: "The report is empty" How exactly do I link the report to the datasource? I presume this is what I have to do?
  4. I have succesfully added a JDBC datasource in the datasources folder The data source specifies a mysql database I want to use for the purposes of data analysis, data presentaion and reporting. My question is, is there something else I have to do in order to be able to view the data from the database. I am new to JasperReports server and am not sure how to go about this. I have been reading the pdf guides: i.e.: JasperReports-Server-Admin-Guide, JasperReports-Server-CP-User-Guide, JasperReports-Server-Install-Guide and JasperServer-CE-Source-Build-Guide but cannot find specific info on this. from browsing the my buildomatic folder and more specifically: the following files: buildomatic/install_resources/sql/FoodMartCreateData.zip buildomatic/install_resources/sql/mysql/foodmart-mysql.zip buildomatic/install_resources/sql/mysql/foodmart-mysql.zip Do I have to export my mysql database as a zip file and then import it into one of the folders above? I see there is a js-import.sh and js-export.sh command in the buildomatic folder Should I be using these commands to export and import my mysql database into the buildomatic/install_resources/sql or buildomatic/install_resources/sql/mysql folder? Or is this a case of adding something in the 'default_master.properties' file? Is this simply a case where I should be using IReports to create reports based on my database, then import them to JasperReports Server? I'd rather not do that if possible.
  5. I've recently installed JasperReports Server 4.5 and for some reason, I have no superuser and cannot see the 'organizations' folder in the repository (see screenshot) Maybe this is because I am logged in as 'jasperadmin', but this seems to be the most senior role available to me. I am using the community edition. Is this edition supposed to have the user: 'superuser' by default?
  6. This is a very general question. I have installed JasperReports Server 4.5 community edition as part of a side project my boss is exploring. We are in the area of market research, and we get data back from surveys in the a variety of formats: excel spreadsheets, .csv files, .xml file etc... I can turn the .xml files into mysql database tables within a database and I want to display this info withing JasperReports Server. Question is, Do I need to use IReport to create report/s then upload to JasperReports Server? or can I do this all in JasperReports Server? Thanks.
  7. I have created a new database that I want to use in JasperReports Server. At the moment, after I log into Jasperserver, all I can see in: view>repository is the sample data sources that I got from the war file. I am guessing that I need to change either: default_master.properties in the buildomatic folder or some other config file? Maybe I should point out that I built the Jasper source code using the ant scripts in the buildomatic folder. Thanks Post Edited by toonskies at 04/11/2012 13:41
  8. Has anyone any idea why numerous buttons are disabled in jasperreports server after logging in as administrator? eg.: on the view>repository page, the following buttons are disabled: 'Run', 'Open', 'Paste' I am using the Community edition, Also, I have created a new mysql database. How do I point to it within (or outside) Jasperreports server? Thanks for any help.
×
×
  • Create New...