ReportViewer 控件 - 高度问题 [英] ReportViewer Control - Height issue
问题描述
在我的 asp.net 应用程序中,我试图打开一个特定的报告.我将 ReportViewer 控件设置为宽度为 100%,高度为 100%.现在我希望这意味着报告将占据整个页面.令我惊讶的是,事实并非如此.在 IE7 中,虽然它占据了页面的整个宽度,但它只占据了高度的一小部分.在 Firefox 中,宽度和高度都搞砸了.我让浏览器打开一个几乎占据整个屏幕的新页面.有什么想法吗?
In my asp.net application, I am trying to open a particular report. I have the ReportViewer Control set with width of 100% and height of 100%. Now I expect that to mean that the report will take up the entire page. Well to my surprise, it does not. In IE7 while it takes the entire width of the page, it only takes up a small portion of the height. In Firefox, both the width and the height are messed up. I have the browser open up a new page that takes up almost all of the screen. Any ideas?
谢谢!
推荐答案
给它一个足以容纳整个报表高度的静态高度.据我所知 100% 是行不通的,因为 ReportViewer 控件本质上是由一个大的 div
标签包裹的.
Give it a static height that is enough for the entire height of the report. As far as I know 100% will not work because the ReportViewer control is essentially wrapped by one big div
tag.
这篇关于ReportViewer 控件 - 高度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!