Author Topic: Page sizing (particularly Charts)  (Read 105 times)

Offline Russell

  • Associate
  • **
  • Join Date: Feb 2018
  • Posts: 1
  • Forum Citizenship: +0/-0
Page sizing (particularly Charts)
« on: 26 Jul 2018 04:39:50 am »
I want to get a page (in this case a chart) to "fill the page".  Ideally I'd like this to fill the window when being viewed on screen and an A4 page when being viewed in PDF for printing.

I assume that the "size & overflow" option is all that's available but there seem to be some unhelpful limitations...
1) setting the percent to 100 for height OR width works for PDFs that dimension but setting both to 100 doesn't apply to both (also doesn't adjust to the window size on-screen so has scrollbars
2) available screen resolution differs around the company (laptops are very different to desktops; several different laptop sizes too)
3) without changing the size & overflow, Cognos has a fixed width per category value so will adjust itself depending on the timescale/values selected

All of this makes it very difficult to get to a setting that makes it look visually good to all end users without having separate versions of everything to suit each individual resolution/layout (adding to the administration for some complicated reports).

Has anyone got any suggestions of the best way to get around these limitations?

Offline Invisi

  • Community Leader
  • *****
  • Join Date: Sep 2016
  • Posts: 246
  • Forum Citizenship: +6/-5
    • Invisi - Vision on Information
Re: Page sizing (particularly Charts)
« Reply #1 on: 06 Aug 2018 05:04:54 am »
Firstly I would wonder why you want one chart to fill your whole screen when it's not mobile. Secondly I would wonder why you want this one chart both on screen and printed on paper.

After that, consider you can give the chart a sizing of 90% instead of 100%. This will allow for some margins, that are hiding somewhere in the stylesheets. I think you can also work with horizontal and vertical positioning to make sure your chart will be centered. Maybe you have to set these properties in the container where the chart is in.
Few can be done on Cognos | RTFM for those who ask basic questions...

Offline hespora

  • Statesman
  • ******
  • Join Date: Nov 2015
  • Posts: 364
  • Forum Citizenship: +22/-0
Re: Page sizing (particularly Charts)
« Reply #2 on: 07 Aug 2018 02:14:09 am »
I agree with Invisi; for anything "standard size" rather than a small mobile device, a single chart per page seems overkill.

Either way, what my experience tells me to do is rather than try and find the one-approach-fits-all layout, work with multiple layouts, either in conditional blocks or in pages, with render variables set on the ReportOutput() function.