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

samueel01

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by samueel01

  1. Hi everyone

     

    I have the folowing problem:

     

    I have a Column Footer reserved area in my report that must appears only in first page, in second pages and others the band Colum Footer must to hide and the detail band needs to expand, filling all the space.

  2. Don't lost your time with Customize class parameter on iReport, It's seems not function correctly!

     

    I generated my Customize class and defined the settings on code after that I exported the graphic for image and ploted on Image area on iReport template.

     

    This link will help you:

    http://members.lycos.co.uk/oderin/tutorials/JavaReporting/JavaReportingTutorial.htm

     

     

    And this one will help you to customize:

    http://www.java2s.com/Code/Java/Chart/JFreeChartBarChartDemo1.htm

     

     

    I hope I have helped you!

  3. I need print a report from a byte array that is stored on database.

    I already have the byte array.

    The code is the following:

     

    Code:

    InputStream bays = new ByteArrayInputStream(auto.getArquivo());

    JasperPrint print = (JasperPrint) JRLoader.loadObject(inByteArray) ;//Error

    JasperViewer viewer = new JasperViewer(print, false);

    viewer.setVisible(true);

     

    In the tag Error, the Exception is the following:

     

    StreamCorruptedException invalid stream reader

     

    Error loading object from InputStream

  4. When occurs this error, I was using the following verions:

    iReport: 0.5.1

    JasperReports: 1.0.1

     

    But now I updated the both to the current version:

     

    iReport: 1.2.7

    JasperReports: 1.2.7

     

    And now the erro is the following:

     

    Code:
      Filling report... 
    Locale: português (Brasil)
    Time zone: default
    Error filling print... null
    java.lang.NullPointerException at net.sf.jasperreports.charts.fill.JRFillCategoryDataset.customIncrement(JRFillCategoryDataset.java:141) at net.sf.jasperreports.engine.fill.JRFillElementDataset.increment(JRFillElementDataset.java:169) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:154) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:621) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:758) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:685) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:517) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:723) at java.lang.Thread.run(Unknown Source)
    Print not filled. Try to use an EmptyDataSource...!

     

    Thank you teodord

  5. I'm trying to customize a bar chart. I have implemented a JRChartCustomizer with this snipet code:

     

     

    Code:
    import org.jfree.chart.JFreeChart;
    import org.jfree.chart.renderer.category.BarRenderer;
    import net.sf.jasperreports.engine.JRChart;
    import net.sf.jasperreports.engine.JRChartCustomizer;


    public class BarChartCustomizer implements JRChartCustomizer {

    public void customize(JFreeChart chart, JRChart jasperChart) {

    BarRenderer renderer = (BarRenderer) chart.getCategoryPlot().getRenderer();

    renderer.setMaxBarWidth (0.1);

    }

    }

     

     

    But when I execute the report the following error occurs:

     

    Code:
    [code]Filling report... Error filling print... net.sf.jasperreports.engine.JRRuntimeException: BarChartCustomizer at net.sf.jasperreports.engine.fill.JRFillChart.<init>(JRFillChart.java:253) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getChart(JRFillObjectFactory.java:464) at net.sf.jasperreports.engine.base.JRBaseChart.getCopy(JRBaseChart.java:430) at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:87) at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:113) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:287) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:579) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:93) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:75) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:113) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:428) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:344) at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:604) at java.lang.Thread.run(Unknown Source) Print not filled. Try to use an EmptyDataSource...!

     

    By the web application, the error is the same.

     

    Please everyone, what should I do???

×
×
  • Create New...