COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: b737 on 03 Nov 2015 12:42:47 PM

Title: Unique (fixed) size of Active report
Post by: b737 on 03 Nov 2015 12:42:47 PM
Hi,

I am new in Cognos 10.2 and in Active reports, but i have been working till now in Cognos 8.4. I want to create Active report with unique (fix) size which will not depend of resolution of the monitor, and will be the same size.

thanks
Title: Re: Unique (fixed) size of Active report
Post by: MFGF on 05 Nov 2015 02:41:28 AM
Quote from: b737 on 03 Nov 2015 12:42:47 PM
Hi,

I am new in Cognos 10.2 and in Active reports, but i have been working till now in Cognos 8.4. I want to create Active report with unique (fix) size which will not depend of resolution of the monitor, and will be the same size.

thanks

You'll be happy to know that you use the exact same approach as with any "normal" report - in Cognos 8 or 10. Simply fix the size of the structures you include so they don't grow and shrink. The usual culprits are tables and blocks, which by default are set to width 100% in the Size & Overflow property. Change this to a fixed number of pixels - eg 1024px. Also explicitly size each table cell, and where you include content of the same size as the cell, specify explicit padding for the table cell of 0px top, bottom, left and right (the default is 1px all around, even though it appears blank).

Cheers!

MF.
Title: Re: Unique (fixed) size of Active report
Post by: b737 on 07 Nov 2015 11:41:07 AM
Thank you.

I have found this tutorial https://www.youtube.com/watch?v=TTHeErxKCtU (https://www.youtube.com/watch?v=TTHeErxKCtU) and on 10:44 it shows that report adjust to the size of the screen. I am not sure is it because of the image that he put on background??
Title: Re: Unique (fixed) size of Active report
Post by: MFGF on 09 Nov 2015 03:50:10 AM
Quote from: b737 on 07 Nov 2015 11:41:07 AM
Thank you.

I have found this tutorial https://www.youtube.com/watch?v=TTHeErxKCtU (https://www.youtube.com/watch?v=TTHeErxKCtU) and on 10:44 it shows that report adjust to the size of the screen. I am not sure is it because of the image that he put on background??

If you look at the video around the 1:00 minute time period, you see the author define a table with width and height specified as 100%. This is the reason things grow and shrink. If you want fixed sizes, define widths and heights as a fixed number of pixels (not as 100%) as I indicated in the previous post.

MF.