Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Set Image-Size with report-parameters?
iparker
Hello,
is there a possibility to set the height or width of an image by an report-parameter so I can define the output-size of the image by parameters? Could it be solved with a script?
Thanks for some answers!
Timo
Find more posts tagged with
Comments
mwilliams
Hi Timo,
What version of BIRT are you using?
mwilliams
Timo,
In 2.5.1, at least, you can set the height and width of an image with:
this.height = "valid height string"; //i.e. "1in"
this.width = "valid width string"; //i.e. "1in"
So, as long as your parameter options are all in the valid string form accepted by BIRT or you can convert them to such in you script, putting this in the onCreate script of the image should do it.
Hope this helps.