![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
yo1832
-
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
-
-
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
-
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!!
-
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.
-
i have a string with concat
new string("hello").concat($P{home}).concat("be happy");
i wan put $P{home} in bold, and "hello" and "be happy" in normal
how can i make this.
Post Edited by Yo mismo at 03/10/09 11:06 -
i need make the second part
-
open *.jrxml with ireport, compile and you obtain the jasper.
-
this is a complete jasper report, create with ireport 3.0
Have more parameter and variables than i put you in the sample
-
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.
-
//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));
-
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
-
-
-
I make a report with detail have 2 colum
d1|d6
d2|d7
d3
d4
d5
ireport have any option two display the column this:
d1|d5
d2|d5
d3|d7
d4|d8
i want that the colums have a equal numbers of elements
Post Edited by Yo mismo at 03/09/09 08:07 -
Ja,ja,ja I found the solution.
Make a backgorund area than big how the page, and this drawn a frame.
-
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);
-
This is my report, how have to change to frame make a border for seccionheader to detil.
informe.JPG have a picture for my actually position
informeFinal.JPG have a frame oki
how i change in the report to view ok.
-
thank you, you save me.
-
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"
-
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 -
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"
-
i change positions fo all combinatios, but nothing. the frame only draw the last element
-
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
-
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
-
if i use lines the last detail not have line
header
-----------------------------------------------
(detail)
|d1 |
|d2 |
{ white space witout lines | dx | }
page footer
---------------------------------------------------
column footer help
in Products
Posted
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