Bonjour,
Je travaille sur un projet qui est passé par plusieurs prestataires et qui utilise jasperReport pour créer des pdf.
Il utilise la lib dori.jasper.engine.JasperReport, mais je ne trouve pas la version de iReport qui utilise cette version de la lib.
La version que j'ai 3.0.0 utilise la lib net.sf.jasperreports.engine.JasperReport.
Les précédents prestataires ont bien laissé un doc et des .bat pour compiler mais j'ai des erreurs que je ne comprends pas lors de la compilation. Si quelqu'un a une solution, je bataille depuis 2 jours pour comprendre.
Le but initial de la modification est de pouvoir afficher un champ texte contenant des retours à la ligne qui à l'heure actuelle n'affiche que la première ligne.
Voici les traces des .bat :
Voici le fichier xml initial :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108 D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>1.bat D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>cd D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>C:\appft\eclipse\eclipse3.2\plugins\org.apache.ant_1.7.1.v20090120-1145/bin/ant javac Buildfile: build.xml javac: [javac] Compiling 5 source files to D:\projets_eclipse\74N\G03R04C00\74n_cli ent\appli\src\report-conf\BonAPayer [javac] Note: D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-c onf\BonAPayer\BonAPayer.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. BUILD SUCCESSFUL Total time: 0 seconds D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>2.bat D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>cd D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>copy BonAPayer.java BonAPayer.java2 1 fichier(s) copié(s). D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>copy BonAPayer.class BonAPayer.class2 1 fichier(s) copié(s). D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>C:\appft\eclipse\eclipse3.2\plugins\org.apache.ant_1.7.1.v20090120-1145/bin/ant compile Buildfile: build.xml compile: [java] log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). [java] log4j:WARN Please initialize the log4j system properly. [java] org.xml.sax.SAXParseException: Element type "import" must be declared. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1960) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:816) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) [java] at org.apache.commons.digester.Digester.parse(Digester.java:1567) [java] at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) [java] at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102) [java] at BonAPayer.main(BonAPayer.java:69) [java] [java] NESTED BY : [java] org.xml.sax.SAXParseException: Element type "import" must be declared. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1960) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:816) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) [java] at org.apache.commons.digester.Digester.parse(Digester.java:1567) [java] at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) [java] at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102) [java] at BonAPayer.main(BonAPayer.java:69) [java] [java] NESTED BY : [java] dori.jasper.engine.JRException: Element type "import" must be declared. [java] at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:411) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:371) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:339) [java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323) [java] at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102) [java] at BonAPayer.main(BonAPayer.java:69) [java] Caused by: org.xml.sax.SAXParseException: Element type "import" must be declared. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1960) [java] at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:816) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) [java] at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242) [java] at org.apache.commons.digester.Digester.parse(Digester.java:1567) [java] at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:387) [java] ... 5 more [java] Java Result: 1 BUILD SUCCESSFUL Total time: 0 seconds D:\projets_eclipse\74N\G03R04C00\74n_client\appli\src\report-conf\BonAPayer>
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412 <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="BonAPayer" columnCount="1" printOrder="Vertical" orientation="Landscape" pageWidth="1024" pageHeight="724" columnWidth="984" columnSpacing="0" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <reportFont name="Arial_Normal" isDefault="false" fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="ISO-8859-1" isPdfEmbedded="false"/> <reportFont name="Arial_Bold" isDefault="false" fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="ISO-8859-1" isPdfEmbedded="false"/> <parameter name="donnees" isForPrompting="true" class="java.util.HashMap"/> <parameter name="libelles" isForPrompting="true" class="java.util.HashMap"/> <parameter name="sources" isForPrompting="true" class="java.util.HashMap"/> <parameter name="jaspers" isForPrompting="true" class="java.util.HashMap"/> <field name="id" class="java.lang.Integer"/> <group name="subreports" > <groupExpression><![CDATA[$F{id}]]></groupExpression> <groupHeader> <band height="0" isSplitAllowed="true" > </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="210" isSplitAllowed="true" > <image scaleImage="RetainShape" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="3" width="62" height="43" key="image"/> <box></box> <graphicElement stretchType="NoStretch"> <pen lineWidth="0.0" lineStyle="Solid"/> </graphicElement> <imageExpression class="java.lang.String"><![CDATA["" + ($P{donnees}).get("logoFranceTelecom")]]></imageExpression> </image> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="100" y="15" width="620" height="25" key="textField"/> <box></box> <textElement textAlignment="Center"> <font reportFont="Arial_Bold" size="20"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("titre")]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement x="0" y="55" width="684" height="1" key="line"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="60" width="350" height="20" key="textField"/> <box></box> <textElement textAlignment="Center"> <font reportFont="Arial_Normal" size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("a") + " " + ($P{donnees}).get("destinataire")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="370" y="60" width="350" height="20" key="textField"/> <box></box> <textElement textAlignment="Center"> <font reportFont="Arial_Normal" size="12"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("de") + " " + ($P{donnees}).get("emetteur")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="90" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("societe") + " " + ($P{donnees}).get("societe")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="370" y="90" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("telephone") + " " + ($P{donnees}).get("telephone")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="120" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("telecopieur") + " " + ($P{donnees}).get("telecopieur")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="370" y="120" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("date")+ " " + ($P{donnees}).get("date")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="150" width="710" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("objet")+ " " + ($P{donnees}).get("objet")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="180" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("bap")+ " " + ($P{donnees}).get("bap")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="370" y="180" width="350" height="20" key="textField"/> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("precedent")+ " " + ($P{donnees}).get("precedent")]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement x="0" y="55" width="730" height="1" key="line"/> <graphicElement stretchType="NoStretch"/> </line> </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="90" isSplitAllowed="true" > <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="10" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 1)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{donnees}).get("intitFacture")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="30" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 1)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{donnees}).get("intitFactureCertif")]]></textFieldExpression> </textField> <subreport isUsingCache="true"> <reportElement x="10" y="60" width="710" height="20" key="subreport"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 1)]]></printWhenExpression> </reportElement> <subreportParameter name="donnees"> <subreportParameterExpression><![CDATA[$P{donnees}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="libelles"> <subreportParameterExpression><![CDATA[$P{libelles}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[($P{sources}).get("produitsCertifies")]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[($P{jaspers}).get("produitsCertifies")]]></subreportExpression> </subreport> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="20" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 2)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("montantAPayer")]]></textFieldExpression> </textField> <subreport isUsingCache="true"> <reportElement x="10" y="40" width="710" height="20" key="subreport"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 2)]]></printWhenExpression> </reportElement> <subreportParameter name="donnees"> <subreportParameterExpression><![CDATA[$P{donnees}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="libelles"> <subreportParameterExpression><![CDATA[$P{libelles}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[($P{sources}).get("avoirs")]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[($P{jaspers}).get("avoirs")]]></subreportExpression> </subreport> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="10" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 3)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" + ($P{libelles}).get("rappelMontantFacture")]]></textFieldExpression> </textField> <subreport isUsingCache="true"> <reportElement x="10" y="30" width="710" height="20" key="subreport"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 3)]]></printWhenExpression> </reportElement> <subreportParameter name="donnees"> <subreportParameterExpression><![CDATA[$P{donnees}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="libelles"> <subreportParameterExpression><![CDATA[$P{libelles}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[($P{sources}).get("produitsFactures")]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[($P{jaspers}).get("produitsFactures")]]></subreportExpression> </subreport> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="10" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 4)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" +($P{libelles}).get("commentaireSynthetique")]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="10" y="30" width="710" height="20" key="textField"> <printWhenExpression><![CDATA[new Boolean($F{id}.intValue() == 4)]]></printWhenExpression> </reportElement> <box></box> <textElement> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["" +($P{donnees}).get("commentaire")]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="30" isSplitAllowed="true" > <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="10" width="350" height="20" key="textField"/> <box></box> <textElement textAlignment="Right"> <font reportFont="Arial_Bold"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="370" y="10" width="350" height="20" key="textField"/> <box></box> <textElement textAlignment="Left"> <font reportFont="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[" / " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary> </jasperReport>
Partager