ReportViewer (SSRS) with VB.NET Appearance error

2019-03-06 14:07发布

问题:

I want to embed a .net webpage with ReportViewer object. I created a test project and have:

<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="FeaturedContent" >
    <asp:Panel ID="Panel1" runat="server" Height="100%" Width="100%">
                <rsweb:ReportViewer ID="ReportViewer2" runat="server" bordercolor="Navy" borderstyle="Solid" borderwidth="1px" height="100%" tooltip="Display Report" width="100%" Font-Names="Verdana" Font-Size="8pt" ProcessingMode="Remote">
                    <ServerReport ReportPath="/sales" ReportServerUrl="http://server/reportserver" />
                </rsweb:ReportViewer>
        </asp:Panel>
</asp:Content>

However, the buttons of the report are huge. See images:

Any reason for that? Thanks

回答1:

Finally fixed it. It was a CSS format issue:

input, textarea {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0 6px 0;
    padding: 5px;
    width: 300px;
}

Removed it and everything is fine now. Thanks everyone.