Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Get size of images
kratos
Hello,
I wonder if it is possible to get the size of an image. What I need to do is depending on the size cause a page break.
Thanks
Find more posts tagged with
Comments
kclark
In the onCreate() of your image you can get the height and width like this.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>var height = this.height;
var width = this.width;
reportContext.setPersistentGlobalVariable("height", height);
reportContext.setPersistentGlobalVariable("width", width);
</pre>
kratos
Perfect!
Regards