专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > .NET报表

ReportViewer 报表没有显示数据,该怎么解决

发布时间:2011-06-24 21:23:33 文章来源:www.iduyao.cn 采编人员:星星草
ReportViewer 报表没有显示数据
前端代码

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
   
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" Height="449px" Width="908px" ShowBackButton="True" 
            SizeToReportContent="True" SkinID="1">
            <LocalReport ReportPath="Report\CanReport\rptCanFault.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="SqlDataSource1" 
                        Name="CanFult_sp_CanReportVehicleFault" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>
        
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:T8ConnectionString %>" 
            SelectCommand="sp_CanReportVehicleFault" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="WhereObjectID" Type="Decimal" />
                <asp:Parameter DefaultValue="0" Name="WhereHoldID" Type="Decimal" />
                <asp:Parameter DefaultValue="1" Name="Userid" Type="String" />
                <asp:Parameter DefaultValue="2012-08-01" Name="WhereSTime" Type="String" />
                <asp:Parameter DefaultValue="2012-08-01" Name="WhereETime" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
     </div>
    </form>
</body>
</html>
          

       后台代码
       
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: