Jump to content

blamblam

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

blamblam's Achievements

  1. I reused the inputstream in the loop, the pointer already moved to eof. Solution is to create a new one in every loop.
  2. This link helped me solve it if anyone is also wondering how : jasper reports - evenly spreading data in to multiple columns - Stack Overflow
  3. Hi I'm trying to create a report for multiple users so I have a loop that goes through the List of users and creates a report based on their details. Inside the loop I have a JasperFillManager like this: def jrprint = JasperFillManager.fillReport(resource.get(), parameters, dataSource)[/code]where resource is the .jasper file, parameter contains the details of the users and dataSource is aa JRBeanCollectionDataSource. It creates the first report just fine but flags an error on the second loop: net.sf.jasperreports.engine.JRException: Error loading object from InputStream.[/code]I hope you can help me, thanks!
  4. Hello, I'm wrapping a List<BufferedImage> in a JRBeanDataSource and passing it from Java to a Jasper Report as a parameter. I'm using this parameter as a Data Source to a SubReport. However when the Images are printed the 2nd Image is printed below the 1st one. How can I configure the subreport to display the images side by side?
  5. Hi, I'm passing a parameter of type JRBeanCollectionDataSource from Java to a jasper report like this: def dataSourcePortfolio = new JRBeanCollectionDataSource(portfolio);parameters.put("portfolio", dataSourcePortfolio);[/code]Where portfolio is a List of user defined class. I'm already receiving the parameter in the Jaspersoft Studio but I have no idea how to access it. How would I display all contents of the List inside the JRBeanCollectionDataSource? I hope you can help, thanks.
  6. Hello, I'm trying to pass a parameter from Java to Jaspersoft including a subreport that I've compiled into a JasperReport and some other values: def subReport = classPathResourceLoader.getResourceAsStream("classpath:reports/subReport.jrxml");parameters.put("subReport", JasperCompileManager.compileReport(subReport.get()));[/code]I've also changed the main report's source code to use the parameters passed: <subreport> <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression> <subreportParameter name="firstName"> <subreportParameterExpression><![CDATA[$P{firstName}]]></subreportParameterExpression> </subreportParameter> <subreportExpression><![CDATA[$P{subReport}]]></subreportExpression></subreport>[/code]As you can see I've also passed another parameter called firstName and I'm displaying it as well, however the subreport still isn't showing. What am I lacking? I hope you can help, thanks.
  7. I solved this problem by exporting it as .zip instead of .jar, extracting the contents of the .zip and placing them under classpath. More details on this in this blog (Solution 3): http://poor-developer.blogspot.com/2017/02/jasper-reports-using-unavailable-fonts.html
  8. Hello, I'm getting a net.sf.jasperreports.engine.util.JRFontNotFoundException[/code]I've already added the font in Jaspersoft Studio like how it was described here: When export a report to PDF change the font . I've also exported the font extension and placed the jar where my classpath can see it like how it was described here: How can I display "$£Ω€απ⅔" in Jasperserver PDF using iReport? . I'm still getting the error. Does anybody know any other solution that might help? Thanks in advance. Edit: I've also installed the fonts on my OS, still getting the error.
  9. Nevermind, I figured it out. I didn't have any band within the sheet. That's why I couldn't place any element at all.
  10. Let's say I need to print the full name of a person. What I originally did was to separate the first name and last name into two elements and placed them side by side since they needed different styling (this is just an example): Lastname, Firstname However, I found out after that I can't actually make their width dynamic because the developers made an effort not to allow it. So now I'm wondering if I can present the name with two different styles inside one element. Is this possible? How would I accomplish that? I hope you can help, thanks!
  11. Hello, I'm new to Jaspersoft, please bear with me. I'm trying to create a report of users profile, I need to place a placeholder for an image for every user. How would I go about doing that?
×
×
  • Create New...