Remove Report Viewer Edge

Asked

Viewed 466 times

2

I have tried several ways to remove this border that appears in the Viewer report, and I could not at all.

inserir a descrição da imagem aqui

Below is part of my code with the properties I added to remove the border:

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;

HTML code is below:

<div class="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>
  • This embroidery is not from reportViewer, could you put this snippet of html code that surrounds the component? The edge of the component no longer appears and another edge of another tag!

  • 1

    @Virgilionovic edited the problem and included the html code snippet

1 answer

2


A iframe, then add this setting to 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" })

Browser other questions tagged

You are not signed in. Login or sign up in order to post.