代码:

<table style="background-color: ; overflow: hidden; height:100%;  width: 100%; vertical-align:top;">
             <tr style="">
                 <td style="height: 100%;">
                 </td>
                 <td>
                      <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
    Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana"
    WaitMessageFont-Size="14pt" style="width:100%; overflow:hidden;">
    <LocalReport ReportPath="D:\wwwroot\reportNew\RDLC\rdlc_temple\rdlc.rdlc">
    </LocalReport>
    </rsweb:ReportViewer>                

</td>
             </tr>
         </table>

显示问题:在ff和IE8下,会在报表上部显示一片空白区域,影响美观,如图:

RDLC报表控件reportview显示问题(高度自适应)

解决办法:

1、去掉红色字体的style设置,即 height:100%;

<table style="background-color: ; overflow: hidden; height:100%;  width: 100%; vertical-align:top;">
             <tr style="">
                 <td style="height: 100%;">
                 </td>
                 <td>
                      <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
    Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana"
    WaitMessageFont-Size="14pt" style="width:100%; overflow:hidden;">
    <LocalReport ReportPath="D:\wwwroot\reportNew\RDLC\rdlc_temple\rdlc.rdlc">
    </LocalReport>
    </rsweb:ReportViewer>                

</td>
             </tr>
         </table>

2、直接使用div作为容器

 <div >
    </LocalReport>
    </rsweb:ReportViewer>    

</div>

如图:

RDLC报表控件reportview显示问题(高度自适应)

相关文章:

  • 2021-07-05
  • 2021-08-12
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2021-11-03
  • 2021-10-10
  • 2022-12-23
  • 2021-06-02
  • 2022-02-06
  • 2021-12-12
  • 2021-11-13
相关资源
相似解决方案