473,750 Members | 2,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javas cript">
var theViewer = document.getEle mentById("Repor tViewer1");
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 1210

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

Similar topics

0
1238
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
9663
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 it works just fine. However, with the report viewer on my page, I cannot see anything. The report viewer has no specific settings other than the items listed below: <rsweb:ReportViewer ID="ReportViewer1" runat="server"
0
1664
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 user specifies how many parameters to search through (between 0 and 30 different fields), and the relation (i.e. find results that are =, >, <, >=, <= to a specified value). If I was outputting the results to a DataGridView, then I could directly use...
0
1124
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 to see all pages in just a screen, is it possible using reportviewer? I've made it using crystal reports (it has a property for), i don't find a property to do it with reportviewer, i can't use crystal, it should be reportviewer (it's more easy...
0
8833
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.