ReportViewer Control - Height issue

后端 未结 13 1040
南笙
南笙 2021-01-31 09:10

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 t

13条回答
  •  臣服心动
    2021-01-31 09:41

    This is how I fixed my problem for the height... No as elegant as I wish but It work.

    function ResizeReport() {
        var htmlheight = document.documentElement.clientHeight - 110;
        var reportViewer = $('div[id^=VisibleReportContent<%= this.bddr_report.ClientID %>]').parent();
        reportViewer.css('height',htmlheight+'px');
    }
    

提交回复
热议问题