Maximize report window

Case:

When you are working in report studio and you want to test a report, the windows that opens has a small size. You have to click on the top of the screen (maximize) to get a full size window.

Solution:

In the header of the report you can put a HTML-item with the following script:

<script language=”JavaScript”>

window.moveTo(0,0);

window.resizeTo(screen.width,screen.height);

</script>

When you run the report it automaticly gets a full window size.

Update:

Today I used above script in a report. I found out that the window does maximize but I couldn’t see the page up/down option in the bottom of the screen.

After testing with the following code it works better.

<script language=”JavaScript”>
window.onload = maxWindow;

function maxWindow()
{
window.moveTo(0,0);

if (document.all)
{
top.window.resizeTo(screen.availWidth,screen.availHeight);
}

else if (document.layers||document.getElementById)
{
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}

</script>

 

Permanent solution:

It is also possible to put this HTML-item in the report template. This way you always have the HTML-item present in the report.

For examples how to make a report studio template see:

http://www.ironsidegroup.com/2010/07/08/designing-effective-ibm-cognos-report-studio-templates/

or search google for other examples.

One thought on “Maximize report window

  1. Pingback: Adapt screensize for Cognos Report | HowToCognos

Leave a Reply

Your email address will not be published. Required fields are marked *