HOW-TO add a text watermark

Since DJ 5.0.4 it is possible to add basic text watermark like this     The simplest way to add it is with the DynamicReportBuilder or FastReportBuilder passing only the text (it uses default values) FastReportBuilder drb = new FastReportBuilder(); drb.addColumn(“State”, “state”, String.class.getName(),30) … .addWatermark(“TOP SECRET”) … If you want to pass more parameters such as font, color,…

HOW-TO Create colspan headers

Available since version 3.2.1 The idea is have a column span header, like html tables. For example: State Estimated Amount Percentage Arizona 600 30% New York 400 20% Florida 1000 50% In the following example, we are adding a colum span in the header of the column 2 to the column 3: NOTE: You may…

HOW-TO Add Concatenated Subreports

Concatenating many reports in a single one (eg: a single PDF) can be a hard task. Using DynamicJasper it is really easy get reports of different nature in a single one. Useful examples: Test Sample PDF ar.com.fdvs.dj.test.subreport.ConcatenatedReportTest Creates a single PDF that concatenates 3 reports download DynamicReport dynamicReport = createSubreport1(); drb.addConcatenatedReport( dynamicReport, new ClassicLayoutManager(), “statistics”,…