473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

ReportViewer and dynamic size with IE7 problem

This problem originated months ago when I wanted the ReportViewer control to
take up most of the current size of the IE window, even if the user sizes
the IE window.
So as a kick-off I made the height 80% and the width 90% in the designer,
however when the report loaded, the height did not stay 80%, it became
small - the width stayed 90% though.
So then I used Java script to size the height of the ReportViewer control
dynamically when the page loads in IE and this works fine for IE6, however
since installing IE7, the script does not work, the height is small. Here
follows the script - it comes right at the bottom of the page:

<script type="text/javascript" language="javascript">
var theViewer = document.getElementById("ReportViewer1");
theViewer.style.height = "80%";
</script>

The script still finds the right HTML element - if I do a:
alert(theViewer.style.height);
before I set it to 80%, it shows the correct height assigned in the
designer.

NOTE that if I use pixels in the script, example "600px" then the script
sizes it, but 80% is what I want - to stay 80% even if the user sizes the IE
window.

So if anyone knows how to get the script working, or any other method to get
the height 80%, it will be appreciated.
Dec 30 '06 #1
0 1196

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Krishna | last post by:
Please help me to generate a dynamic Reportviewer. I mean datasource would be dynamic. How to rebind? Thanks Kris
2
by: SimeonArgus | last post by:
I have a reportViewer object looking at a remote report. The good news is that I can press the PDF or Print button, and the report coems out just fine. I can also go to the report URL directly, and...
0
by: jwmaiden | last post by:
I'm creating a project in VB.Net that takes results from a search of tables in an SQL database and displays the results in a ReportViewer control. The search I'm trying to do is tricky, because the...
0
by: Rick | last post by:
Hy Guys!!! I've made a report using reportviewer control in VS2005, it gives me 35 pages (A4 size), i want to display just one page or continuos pages without have to press next button, i want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.