dynamic height & width for birt:viewer in jsp [message #734243] |
Fri, 07 October 2011 04:51  |
Eclipse User |
|
|
|
Hi,
I am using an embedded birtviewer in jsp to display the report.
here i'm using tag as
<script="text/javascript">
function getScreenWidth()
{
return screen.width;
}
function getScreenHeight()
{
return screen.height;
}
</script>
<body>
<birt:viewer id="birtViewer" reportDesign="pacacct.rptdesign"
pattern="frameset"
height= getScreenHeight();/* how should i assign getScreenHeight()value here */
width=getScreenWidth();/* how should i assign the getScreenWidth()value here */
format="html">
</birt:viewer>
</body>
i'm getting the screen width and height by using the above javascript code.Here i want to know how to set javascript value to height and width of the birt tag. Because i want to set the viewer to be fixed based on the client window size. So i want to make it as dynamically.
Please help me.
Thanks in Advance.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08240 seconds