COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: Mateeoo on 01 Aug 2013 06:28:29 AM

Title: Problem with <div style> inside a Rich Text Element
Post by: Mateeoo on 01 Aug 2013 06:28:29 AM
Good morning to all of you,

I am having some problems to display an image by using div style inside a Rich Text Item.
I am using a Rich Text Element because I have to print the report in pdf format.

The image is displayed properly in the report except for the size.

This is the code I have used:

<div style="background-image: url(http://eam.unicatt.it/docuploads/PROD/TEST.jpeg);
background-repeat:no-repeat;
background-size:contain;
background-clip:content-box;
height: 450px; width: 900px;">
</div>

It seems that Cognos is not able to re-size the image so I get just a part of the image.

I tried the same code outside Cognos and the image is re-size properly.

Could I have some tips?

Best Regards and thanks in advance.

Ciao
Matteo


Title: Re: Problem with <div style> inside a Rich Text Element
Post by: Bark on 17 Jun 2014 08:40:15 AM
Has anyone found a solution for this? I am currently facing the same issue :(

Thanks and regards,

Bark