asp.net 2010 Report1.rdlc报表
cs代码DataSet1 ds=new DataSet1();
DataSet1TableAdapters.dataProductTableAdapter dt = new DataSet1TableAdapters.dataProductTableAdapter();
dt.Fill(ds.dataProduct);
DataTable dt1 = new DataTable();
dt1 = ds.dataProduct;
ReportViewer1.Reset();
ReportViewer1.LocalReport.DataSources.Clear();
ReportDataSource rds = new ReportDataSource("DataSet1", dt1);
ReportViewer1.LocalReport.DataSources.Add(rds); //添加数据源
ReportViewer1.ZoomMode = ZoomMode.Percent;
ReportViewer1.LocalReport.Refresh();
html代码
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" Height="589px" InteractiveDeviceInfos="(集合)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%">
<LocalReport ReportPath="Manage\Report1.rdlc">
</LocalReport>
</rsweb:ReportViewer>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
html代码就是选择了Report1.rdlc
问题:F5执行后显示空白。什么都没有。也不报错,测试是有数据的
.net 报表 asp.net
补充:.NET技术 , ASP.NET