Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Embeded birtviewer in jsp
CaTcHmE
Hi,<br />
<br />
I am using an embedded birtviewer in jsp to display the report.<br />
here i'm using tag as<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<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="600" /* how can i call the script or assign the value for height and width*/
width="1000"
format="html">
</birt:viewer>
</body>
</pre>
here i want to set the height and width dynamically. how can i do this.<br />
Help Me<br />
<br />
Thanks in Advance.
Find more posts tagged with
Comments
mwilliams
Where are you getting the dynamic value from? How is this determined. Let me know.
CaTcHmE
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="81987" data-time="1314381679" data-date="26 August 2011 - 11:01 AM"><p>
Where are you getting the dynamic value from? How is this determined. Let me know.<br /></p></blockquote>
<br />
Thanks for reply,<br />
<br />
Using the javascript <br />
<pre class='_prettyXprint _lang-auto _linenums:0'><script="text/javascript">
function getScreenWidth()
{
return screen.width;
}
function getScreenHeight()
{
return screen.height;
}
</script></pre>
<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'><body>
<birt:viewer id="birtViewer" reportDesign="pacacct.rptdesign"
pattern="frameset"
height= getScreenHeight(); /* how should i assign the getScreenHeight()value here */
width=getScreenWidth(); /* how should i assign the getScreenWidth()value here */
format="html">
</birt:viewer>
</body>
</pre>
<br />
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.<br />
Please help me.<br />
<br />
Thanks in Advance.
CaTcHmE
Hi mwilliams,
Kindly help me to fix the problem.
mwilliams
Sorry for the delay. Have you tried:
height= "getScreenHeight()"
width="getScreenWidth()"
G@URI
Hello,
I hv tried this...but its giving NumberFormatException..please help me..or any other way?
G@URI
pls pls pls help me