COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: khoinh on 16 Sep 2010 03:09:41 AM

Title: How to show HTML item when running with PDF
Post by: khoinh on 16 Sep 2010 03:09:41 AM
Hi,

   I am working with Cognos 8.4. In my report has some HTML items. They worked well with HTML viewer. However, they are lost when I used PDF viewer. How can I show HTML item when running with PDF ?

Thanks
Title: Re: How to show HTML item when running with PDF
Post by: technomorph on 16 Sep 2010 03:46:48 AM
Please post the HTML so we can see what you're trying to do.

Cheers
Title: Re: How to show HTML item when running with PDF
Post by: khoinh on 16 Sep 2010 03:56:58 AM
This is the content of my HTML item:
"

this is my text </br>

this is my header</br>

this my text</br>
"
Title: Re: How to show HTML item when running with PDF
Post by: technomorph on 16 Sep 2010 04:26:06 AM
I can recreate this. However, I think this behaviour is by design because the PDF engine probably isn't designed to parse HTML, so it makes sense that it only displays when running in HTML.

If you just need to add some text to the report is there any reason why you just can't use a Text Item and a table for layout?
Title: Re: How to show HTML item when running with PDF
Post by: khoinh on 16 Sep 2010 04:35:36 AM
Hi,

  The reason that I used HTML item because I want to create a title of column in a list item that has 3 lines with above format. I tried with text item but I can not do it. Could you give me your advices?

Thanks
Title: Re: How to show HTML item when running with PDF
Post by: technomorph on 16 Sep 2010 04:50:35 AM
If I understand correctly, just unlock the list, add a 3 row table to the column title cell, and then add Text Items to each row as needed.