Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Dynamic adaptable image
Dynamic adaptable image [message #839779] Mon, 09 April 2012 07:20 Go to next message
Frizz K is currently offline Frizz K
Messages: 18
Registered: March 2010
Junior Member
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 07:22]

Report message to a moderator

Re: Dynamic adaptable image [message #840089 is a reply to message #839779] Mon, 09 April 2012 16:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 16:19 Go to previous message
CHETAN KAKKAR is currently offline CHETAN KAKKAR
Messages: 6
Registered: April 2012
Junior Member
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: Sat Sep 20 06:00:30 GMT 2014

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

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