casi91
-
Posts
3 -
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 casi91
-
-
Hello community.
Is it possible to print a report twice (or more) on one page? (also a copy of the report) Of course the size of the report is small enought.
I hope you understand my question
-
Hi,
In my PieChart i only want to show the biggest 5 values and "others". But i want to change the Labeltext "others" to "andere". I've tried to write a ChartCustomizer, but i didn't found de right place, where I can replace the Labeltext.Hier my Code so far:
@Override
public void customize(JFreeChart jFreeChart, JRChart jrChart) {
if (jFreeChart.getPlot().getClass().equals(PiePlot3D.class)) {
formatPiePlot3D((PiePlot3D) jFreeChart.getPlot());
} else if (jFreeChart.getPlot().getClass().equals(PiePlot.class)) {
formatPiePlot((PiePlot) jFreeChart.getPlot());
}
}private void formatPiePlot3D(PiePlot3D plot) {
LegendItemCollection lic = plot.getLegendItems();
changeLegendItemCollection(lic);
}
private void formatPiePlot(PiePlot plot) {
LegendItemCollection lic = plot.getLegendItems();
changeLegendItemCollection(lic);
}private void changeLegendItemCollection(LegendItemCollection lic) {
for (int i=0; i < lic.getItemCount(); i++) {
LegendItem li = lic.get(i);
System.out.println(li.getLabel());
if (li.getLabel().toUpperCase().substring(0, 5).trim().equals("OTHER")) {
System.out.println("foundit");
li.setLabelFont(new Font("TimesRoman", Font.ITALIC, 20));
}
}
}I hope somebody can help me.
Print Report more than once on the same page
in Products
Posted
found my answer here:
http://community.jaspersoft.com/questions/505349/using-loop-print-multiple-barcodes