mercredi 15 avril 2015

Jasper Report 5.6 image usage

I have Jasper 5.6 and 3 different logos which are used in different cases. My java code is:



_initialParameters.put("LOGO_DOC_REF", getDoc(_session, _workletShell)
.getLogo());
return super.completeReportParameters(_session, _workletShell,

_businessContextProviders, _initialParameters);


So in my LOGO_DOC_REF i have my logo.bmp and till now everything is ok, it saves different logos for different case.


And this is my jasper code relative to image:



parameter name="LOGO_DOC_REF" class="java.lang.String"
![CDATA[$P{DOCUMENT_SERVICE}.getDocumentContentStreamFromDocRef($P{LOGO_DOC_REF})]


In previous Jasper version it worked... All my logos.bmp are in the DB.


Aucun commentaire:

Enregistrer un commentaire