|
|
|
Re: Displaying dynamic image in a report [message #1198805 is a reply to message #1198364] |
Wed, 20 November 2013 14:17 |
donino donino Messages: 183 Registered: July 2011 |
Senior Member |
|
|
Hi Laurent,
Firstly i think it is a better practice here to use the "onCreate" event rather "onRender". You mentionned you tried it as well, as you describe every step it should work but we don't see the java code section running the task.
With this line of code:
task.getAppContext().put("Generated diagram image", bais.toByteArray());
Keep in mind the byte Array is passed by reference, thus if your calling RCP application is clearing the inputstream before it is actually used in the report the image will be empty. It is just a suggestion, but i don't see any other reason why it would not work.
[Updated on: Wed, 20 November 2013 14:19] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03604 seconds