Remove Report Viewer Border

2

I have tried in several ways to remove this border that appears in the report viewer, and I did not get it at all.

BelowispartofmycodewiththepropertiesIaddedtoremovetheborder:

viewer.SizeToReportContent=true;viewer.Width=System.Web.UI.WebControls.Unit.Percentage(100);viewer.Height=System.Web.UI.WebControls.Unit.Percentage(100);viewer.BorderWidth=0;viewer.InternalBorderStyle=System.Web.UI.WebControls.BorderStyle.None;

TheHTMLisbelow:

<divclass="row-fluid">
    <div class="blockGT">
        <div class="navbar">
            <div class="navbar-inner">
                <ul class="breadcrumb">
                    <li class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></li>
                    <li class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar" rel='tooltip'>&nbsp;</a></li>
                    <li>RELATÓRIO&nbsp;<span class="divider">/</span></li>
                    <li>PAGAMENTOS POR EMPRESA<span class="divider"></span></li>
                </ul>
            </div>
        </div>
    </div>

    <div class="block">
        <div class="navbar navbar-inner block-header">
            <div class="muted pull-left"><b>RELATÓRIO DE PAGAMENTOS POR EMPRESA</b></div>
        </div>
        <div class="block-content collapse in teste">
            <div class="span12">
                @Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer, htmlAttributes: new { @Width = "100%", @Height = "100%" })
            </div>
        </div>
    </div>
</div>
    
asked by anonymous 28.12.2016 / 19:18

1 answer

2

iframe is created, then add this setting in the htmlAttributes : @style = "border:0" to remove the embroidery.

@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer, 
          htmlAttributes: new { @Width = "100%", @Height = "100%", @style = "border:0" })
    
29.12.2016 / 14:06