Skip to main content



      Home
Home » Archived » BIRT » Dynamic adaptable image
Dynamic adaptable image [message #839779] Mon, 09 April 2012 03:20 Go to next message
Eclipse UserFriend
My aim is put images dynamically into an image item (width = 100, height = 100) and resize them preserving the original width/height ratio (obviously if ratio is different to 1 the image doesn't cover fully the image item).

My solution is create a new image resized, insert into a database and use dataset to access to the new image.

Do you know a smarter solution?

[Updated on: Mon, 09 April 2012 03:22] by Moderator

Re: Dynamic adaptable image [message #840089 is a reply to message #839779] Mon, 09 April 2012 12:39 Go to previous messageGo to next message
Eclipse UserFriend
That should work. Have you looked over this post:
http://birtworld.blogspot.com/2010/09/birt-image-report-item.html

Jason

On 4/9/2012 3:20 AM, Frizz K wrote:
> My aim is put images dynamically into an image item (width = 100, height
> = 100) and resize them preserving the original width/height ratio.
>
> My solution is create a new image resized, insert into a database and
> use dataset to access to the new image.
>
> Do you now a smarter solution?
Re: Dynamic adaptable image [message #841688 is a reply to message #839779] Wed, 11 April 2012 12:19 Go to previous message
Eclipse UserFriend
Hi,
You can also try to use Dynamic Text field and have and HTML image tag inserted. To provide the image path you can pass an object or path through task.setParameter("Path","/src...")
where task is an instance of RunandRender or RenderTask.

Another way can be to use image field and have the path provided from parameter used in the dynamic url selection.


To access the object you can write var = report.getParameter("Path") in the initialize script of report design.

Regards,
Chetan
Previous Topic:Caching Problem with Nested Datasets
Next Topic:Reports are erroring out when run in parallel
Goto Forum:
  


Current Time: Tue Jul 22 19:22:28 EDT 2025

Powered by FUDForum. Page generated in 0.03558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top