当文档模式为Edge时,IE11中的ReportViewer高度问题

时间:2014-09-18 06:39:39

标签: asp.net html5 css3 reporting reportviewer

我的asp.net页面中有报表查看器。我希望报表查看器在整页中可见。我试图指定高度(100%),但它不起作用,我还指定了AsyncRendering =“False”

我也尝试过SizeToReportContent =“true”,但是当我将此属性应用于报表查看器时,它最初设置的搜索参数有一些随机的高度和宽度。还有其他方法可以解决这个问题吗?

特别是我希望在IE11中修复所有文档模式(Edge等等)

2 个答案:

答案 0 :(得分:0)

试用ZoomMode="FullPage"

答案 1 :(得分:0)

您可以将报告查看器设置为以下给出的完整页面代码:

将此代码放在标题部分中         / *对于报表查看器整页渲染* /

    div#content { width: 100%; }
    div#content span div table { width: 100%; }
    div#content span div table tr { width: 100% !important; }
    div#content span div table tr:nth-child(2) { width: 100% !important; }
    div#content span div table td[id*='oReportCell'] table  { width: 100% !important; }

它在Chrome和Firefox中运行良好。