COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Devils_Cup on 09 Jan 2008 04:45:55 AM

Title: Re-size Viewer Window to full screen
Post by: Devils_Cup on 09 Jan 2008 04:45:55 AM
Hi Cognos Guru's

I am new to Cognos 8 (and also Cognos, I am a Business Objects guy [All - booo, hiss]), using v8.1, but seem to be having a real problem with IE window sizing. I hope someone can help.

The Problem
When a user clicks a link to a new report it opens in a new IE browser window (this is what our users want) which is set to the last size used in IE (set in regedit).

However, I want the window to open and resize to full screen when the IE window opens.

I have trawled Cognos Support and found that you can Maximise a report window when running a report from Report Studio, but cannot use this same functionality for your users running the reports interactively.

Please can someone help, as I only have a small amount of hair to pull out.

Thanks
Title: Re: Re-size Viewer Window to full screen
Post by: Devils_Cup on 09 Jan 2008 04:47:04 AM
using v6 of IE too by the way if it makes a bit of difference.
Title: Re: Re-size Viewer Window to full screen
Post by: cognosjon on 09 Jan 2008 06:26:59 AM
Hi,

I have the following bit of code placed into a HTML item in the header of our report template so is applied to all of our reports regardless of who creates them.

<script language="JavaScript">

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

</script>

Hope it helps

Title: Re: Re-size Viewer Window to full screen
Post by: Devils_Cup on 09 Jan 2008 11:46:53 AM
Sorted, thanks.