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

ondreia

Members
  • Posts

    10
  • 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 ondreia

  1. Hi,

     

    I need to modify dinamically the margins of my (jrxml)report.

     

    Is there a way to pass a parameter with this value?

    Or a way to manipulate the jrxml, inside my java code??::unsure:

     

    Thanks in advance

     

    Post edited by: ondreia, at: 2007/09/26 15:41

     

    Post edited by: ondreia, at: 2007/09/26 15:44

    Post edited by: ondreia, at: 2007/09/26 15:45

  2. Hi,

     

    I need to modify dinamically the margins of my (jrxml)report.

     

    Is there a way to pass a parameter with this value?

    Or a way to manipulate the jrxml, inside my java code??::unsure:

     

    Thanks in advance

     

    Post edited by: ondreia, at: 2007/09/26 15:42

    Post edited by: ondreia, at: 2007/09/26 15:45

  3. Hi,

     

    I need to modify dinamically the margins of my (jrxml)report.

     

    Is there a way to pass a parameter with this value?

    Or a way to manipulate the jrxml, inside my java code??::unsure:

     

    Thanks in advance

  4. Thanks rsilver!!!

     

    It's a value in a field.

    I create (in my report) a parameter and i put in the default value expression: $F{mfield}.

     

    Then Im my subreport I create a parameter with the same name but it didn´t work :(

     

    Am i doing anything wrong??

  5. Hi everybody

     

    How can I pass a field from my report to my subreport

     

    Example:

    I have a query in my report like:

    select a, b from table1;

     

    In my subreport i want to do :

    select c from table2 where test='a'.

     

    How can i do this???

    Thanks!!!

  6. Hi teodord!!!Thanks for your reply.

    when i run my program, something strnage happens:

    if i call my report it only show my report and my subreport but the subsubreport do not appear.

    if I call my subreport , it shows my subsubreport correctly.

    Am I doing something wrong??

    Code:
        
    Map parametros = new HashMap();
    parametros.put("pathsubrel",jasperReport2);
    parametros.put("pathsubrel2",jasperReport3);
    parametros.put("obra", s_obra);
    parametros.put("versao", versao);

    JasperPrint jasperPrint2 = JasperFillManager.fillReport(jasperReport2, parametros,con);
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros,con);

    JasperViewer jrviewer = new JasperViewer( jasperPrint, true);
    jrviewer.setVisible(true);

     

    thanks, i don´t know what to do more...:S

  7. Well, I'm struggling in subreports

     

    I can call a subreport from my report, and pass arguments, but my question is:

    can I call a subreport inside my subreport?

     

    Code:

    JasperReport jasperReport = (JasperReport) JRLoader.loadObject(arq);
    JasperReport jasperReport2 = (JasperReport) JRLoader.loadObject(arq2);

    Map parameters = new HashMap();
    parameters.put("pathsubrel",arq2.toString());
    parameters.put("obra", obra);
    parameters.put("versao", versao);

    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros,con);

    JasperViewer jrviewer = new JasperViewer( jasperPrint, true);
    jrviewer.setVisible(true);

     

    I tried to do that passing the path to my subsubreport, in my parameters, but it didn´t work

     

    Can anyone help me?

     

    PS: I´m using IReport

×
×
  • Create New...