c+ asp.net report viewer height issue [Answered]RSS

1 reply

Last post Sep 14, 2012 01:01 PM by g_cory

  • c+ asp.net report viewer height issue

    Sep 14, 2012 05:05 AM|ambelimethus89|LINK

    Hello,

    i use web froms report viewer, instead of set height to 100%, i want to set height in pixel value with code below:

    with register start up script or in window. on load it woks fine in IE but in FireFox i got the correct height, but report viewer height shows default, even if i set height...

    i tried but not happened.

    var reportViewer = document.getElementById('<%= Page.Master.FindControl("ContentPlaceHolder").FindControl("rptViewer").ClientID %>');

        var htmlheight = document.documentElement.offsetHeight || document.body.clientHeight;
        reportViewer
    .style.height = (htmlheight - 65) + "px";
    
    

    
    

    Thanks in advanced kindly help me out...

  • Re: c+ asp.net report viewer height issue

    Sep 14, 2012 01:01 PM|g_cory|LINK

    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.
    Cory Granata
    Please "Mark" as Answer if this post helped you.

    OrcsWeb: Managed Windows Hosting Solutions
    "Remarkable Service. Remarkable Support."