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

nnvc

Members
  • Posts

    19
  • 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 nnvc

  1. Hi!

    I am creating reports with a xml file datasource.

    But in some cases I have a huge datasource, for example bigger than 5000 records.

    I want to know if there is a difference in creating a report with xml datasource or csv datasource.

    If anyone can help me, i would apreciate it.

    Thanks in advance.

  2. Hello!!

    I am create a TimeSerieChart with JFreeChart, and then exporting it in a PDF file.

    My concern is about the values for the DomainAxis. It´s a DateAxis type. I have a big range os values it can be day, months, or years.

    As I can´t show all the labels in the chart so used the axis.setTickUnit().

    for example:

      DateAxis axis = (DateAxis) plot.getDomainAxis();

       axis.setTickUnit(new DateTickUnit(DateTickUnit.MINUTE,30));  

    If I have the values for one day, it will show me the labels in every 30 minutes.

    I also set the range : axis.setRange(minDt,maxDt);

    when the chart is created the domain labels don´t have the values that I added in the creation of the dataset. And also the value of the first date isn´t the one that is in range.

     

    Anyone have a clue to solve this.

    Thanks in advance.

  3. Hi!!!

    I have almost the same error. I am using a XML file as a datasource file, and sometimes the file contains a lot of data.

    I obtained the next error.

    org.apache.jasper.JasperException: Java heap space.

    How to solve this?

    Any idea?

     

    Thank you.

     

  4. Hi!!!

     

    What is this fix "Fixed the font extensions exporter" about?

    With the ireport3.6.1 I had a problem with fonts, in wich I had to create jar font containning the fonts that I am using in my reports.

    Thank you very much

  5. Hi!!

    I did manage it, i hope it can help you. I had two reports, one with data(reportA) and another with a chart(reportB), and each one has its own pages.

    I obtained the jasperPrint of the report A.

    with the jasper print i already know the number of pages of the reportA.

    I already know that the reportB has only one Page, so I send a

    parameterMap.put("totalPage",String.valueOf((jasperPrint.getPages().size()+1)));

    In the jrxml of the reportB I created a parameter totalPage, and used it to display the pages.

    I show the pages like 1 / 3 for example,

    and the text field expression is

    (($P{totalPage}.length() == 0)?(" " + $V{PAGE_NUMBER}+ " "):(" " +$P{totalPage})+ " ")

    In my case i use the reportB with other reports also, wich means that if send 0 in totalPage then its also ok.

    the evaluation time is different, for the 1 is "now", and for the 3 the evaluation time is Report.

    My reportA is in portrait and the reportB in Landscape and it works fine.

    I hope it helped you.

     

     



    Post Edited by nnvc at 11/20/2009 11:20
  6. Hi!!

    yes it´s possible to create  dynamic jrxml. 

    you can start with:    JasperDesign jdes = (JasperDesign)JRXmlLoader.load(reportName);

    and then you can add, elements on your jasperdesign such as.

    at the end you have to:

    JasperPrint jasperPrint =

    new JasperPrint();

    and then export your jasperPrint.                          I hope   it had helped you.

    JasperReport jasperReport = JasperCompileManager.compileReport(jdes);     ---- compile your jdes

    jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, new JRXmlDataSource());

  7. Hi!!

    Thank you for the reply.

    I have created 2 conditional styles, but it does not work.

    I think i am doing something wrong.

    the conditional style expression´s are:

    new java.lang.Boolean($V{genderV}=="F")

    and 

    new java.lang.Boolean($V{genderV}=="M")

    genderV is a variable with this expression $F{gender}.

    All the data comes from a xml Data source like this

    <Persons>
     <Person>
         <name></name>
         <surname></surname>
         <gender>F</gender>
      </Person>

    <Person>
         <name></name>
         <surname></surname>
         <gender>M</gender>
      </Person>

    </Persons>

    I just want to show the name and the surname, but the line must have the color according to the values of gender.I would appreciate if anyone could help me.

    Thank you.



     



    Post Edited by nnvc at 08/03/2009 12:26
×
×
  • Create New...