Jump to content

yo1832

Members
  • Posts

    26
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by yo1832

  1. i need put at line when the print last detail of big column

    Page 1

    d1|d3

    d2|d4

    _____<--line

    white space

    white space

    Page 1 of 3

     

    Page 2

    d1|d4

    d2|d5

    d3|d5|

         |d7

    _______

    white space

    Page 2 of 3

     

    Page 3

    d1|d4

    d2|d5

    d3|d6

    _______

     

    Page 3 of 3

     

     

  2. I have a report with 2 colums, i put column footer floating, that put line at the last

    i have this

    d1|d5

    d2|d6

    d3|___ <--line

    d4|

    ___<--line

     

    i can put this:

    d1|d5

    d2|d6

    d3|

    d4|

    _______

     

    the line are in column footer, i can put the line for the clumn more big, text is dinamic

  3. can frame help me?

    i want this:

     

    Frame begin

    |-----------------------|

    |Page header |

    |details |

    |------------------------|

    frame end

    footer

    and if the detail have 3 elements, this put in last of 3 element, if have 4 in the 4,.................

    or only use to draw a border in the background.

    if frame can make this you can put a sample.

    Thank us!!

     

     

     

  4. Go textfiled propertyes-> font tab

    Option: is style text: check this

     Option: markup select html

    new String("<style isBold='true' pdfFontName='Helvetica-Bold'>").concat($F{organizacion.descripcion}).concat("</style>.-").concat($F{entrad})

    this is bold for helvetica. For PDF.

  5. the report you can make with ireport that a grapical jasper report designer.

    you can find google tutorial of this program.

     

    When you have a report create, you can call this with my lines.

    i don`t know  who create report in code.

    My lines pass a list of object anuncios from the database to report.

     

     

  6. //Recorset from data base ( select * from anuncios ) return list of object anuncio

    List listaAnunciosP = this.fachada.obtenerAnunciosPorEstadoParaImpresion(anuncioBean, busqueda);
      
       
        reportFile = new File(getServlet().getServletContext().getRealPath("//WEB-INF//classes//reportes  //busquedaAnunciosImpresionBoletin.jasper"));

        parametros.put("anyo", formulario.getAnyo());
      
       
        listaObjetosReportar = listaAnunciosP;    //list object

        JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());
        JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros, new JRBeanCollectionDataSource(listaObjetosReportar));
     

  7. The best option:

    Go -> Edit -> Report properties -> i18n

    3 combo list -> Cuando falte un tipo de recurso (I have in spanish)

    select blank, this by default is null because is field dont have data print null.

    Now in your report, if a fields dont have data this print blank.

     

    Other Option:

    ($F{AMOUNT1}.equals(new String("null"))?new String(""):new String($F{AMOUNT1}).concat("n"))

     

    I dont know if this is null or NULL or Null

  8. I have a error conact don't exist, is concat

    new String($F{VORNAME}).concat(" ").concat($F{NACHNAME})

    new String($F{VORNAME}.toString()).concat(" ").concat($F{NACHNAME})

  9. if expresion are string

    new String($F{VORNAME}).conact(" ").concat($F{NACHNAME})

    if nay expresion is integer

    new String($F{VORNAME}.toString()).conact(" ").concat($F{NACHNAME})

  10. In my aplication, the reports are in src.main.resorces.reports, but this in package view of the program that i use for program. You must put the real path.

     

     

    parametros.put("subreportPath", directoryHowIsInstallAplication+realPathReports);

     

     

     

  11. I make this:

     

    //Read Bd

    List listaAnunciosP = this.fachada.obtenerAnunciosPorEstadoParaImpresion(anuncioBean, busqueda);

     

    File reportFile = new File(getServlet().getServletContext().getRealPath("//WEB-INF//classes//reportes//busquedaAnunciosImpresionBoletin.jasper"));

     

    parametros.put("rutaImagen", imagenLogo.getPath()); //This are constantes with the path

    parametros.put("imagenLogoBoc", imagenLogoBoc.getPath());

    parametros.put("imagenLogoCruz", imagenLogoCruz.getPath());

     

    parametros.put("subreportPath", "//WEB-INF//classes//reportes//"); //Parameter with the for subreport

     

     

    listaObjetosReportar = listaAnunciosP;

     

    JasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile.getPath());

    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametros, new JRBeanCollectionDataSource(listaObjetosReportar));

     

     

     

    response.setContentType("application/pdf");

    response.setHeader("Content-Disposition", "attachment; filename=vistaprevia.pdf");

    response.setHeader("Expires", "0");

    response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");

    response.setHeader("Pragma", "public");

     

    response.getOutputStream().write(jasperPrint);

     

    In my report propertys

     

    subreport propertis -> subreport(others) in this tab java.lang.String $P{subreportPath} + "subBusquedaAnunciosImpresionBoletin.jasper"

  12. i dont want that the page cut the text

    (xxxxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxx)

    (xxxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxx)

    (xxxxxxxxxxxxxxx

    --------------------- End Page

    xxxxxxxxxxxxxxxx)

    i want :

    (xxxxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxx)

    (xxxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxx)

    --------------------- End Page

    (xxxxxxxxxxxxxxxx

    xxxxxxxxxxxxxxxxx)



    Post Edited by Yo mismo at 03/04/09 11:46
  13. if your report is in the same folder, go subreport propertis -> subreport(others)

     

    in this tab

    java.lang.String

     

    $P{SUBREPORT_DIR} + "myreport.xxx"

     

    change the last line for your subreport

     

    ".\myreport.xxx"

     

  14. when you select put the subreport in report, the program give 2 option for the path of subreport.

    relative or pass a path for parameter

    You are select pass the path for parameter.

    You must create a parameter with the path of subreport.

    the name of this parameter you can see in wiew -> parameter of report

  15. with lines or rectangle, donk work.

    With frame:

     

    title

    pageheader

    subh1

    subh2

    subh3

    detail 1 ( 2 columns) |  detail2

    pagefooter

     i put frame for zone:  pageheader, subh1,  subh2, subh3, detail 1 ( 2 columns) |  detail2, pagefooter

    but it only draw a last detail.

    title

    pageheader

    subh1

    subh2

    subh3

    d1  |  d5

    d2  |  d6

    d3  |  d7

    |----------------------|

    |d4  |  d8              |

    |-----------------------|

    pagefooter

     

×
×
  • Create New...