我的报表查看器rdlc报表未显示数据。c#sql 08
我的报表查看器rdlc报表未显示数据。报告完全是空白的。我检查了在数据集表适配器中编写的查询,它是正确的。我尽我所能尝试了一切,但数据无法加载。我就是想不出是什么问题。 我的另一份报告使用了相同的代码,我已附上了差异表。代码为: 命名空间BillingMaster { 公共部分类ReportAllForm3:表单 { 公共报告格式3() { 初始化组件(); }我的报表查看器rdlc报表未显示数据。c#sql 08,c#,sql-server-2008,C#,Sql Server 2008,我的报表查看器rdlc报表未显示数据。报告完全是空白的。我检查了在数据集表适配器中编写的查询,它是正确的。我尽我所能尝试了一切,但数据无法加载。我就是想不出是什么问题。 我的另一份报告使用了相同的代码,我已附上了差异表。代码为: 命名空间BillingMaster { 公共部分类ReportAllForm3:表单 { 公共报告格式3() { 初始化组件(); } private void ReportAllForm3_Load(object sender, EventArgs e)
private void ReportAllForm3_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'ReportAllDataset3.BillingDetails' table. You can move, or remove it, as needed.
// this.BillingDetailsTableAdapter.Fill(this.ReportAllDataset3.BillingDetails);
this.reportViewer1.RefreshReport();
}
private void btnShow_Click(object sender, EventArgs e)
{
this.BillingDetailsTableAdapter.Fill(this.ReportAllDataset3.BillingDetails, dateTimePicker1.Value.Date.ToShortDateString(), dateTimePicker2.Value.Date.ToShortDateString());
this.reportViewer1.RefreshReport();
}
}
}
private void ReportAllForm3_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'ReportAllDataset3.BillingDetails' table. You can move, or remove it, as needed.
// this.BillingDetailsTableAdapter.Fill(this.ReportAllDataset3.BillingDetails);
this.reportViewer1.RefreshReport();
}
private void btnShow_Click(object sender, EventArgs e)
{
this.BillingDetailsTableAdapter.Fill(this.ReportAllDataset3.BillingDetails, dateTimePicker1.Value.Date.ToShortDateString(), dateTimePicker2.Value.Date.ToShortDateString());
this.reportViewer1.RefreshReport();
}
}
我只将日期列作为日期数据类型。
我正在写以下问题:
从dbo.BillingDetails中选择SrNo、Package、Type、disper、DiscAmt、TotalAmt、noofttkts、BillNo、TaxAmt、Rate、BillNoTop、PackageTop、DiscperTop、discamtop、TaxPerc、datefrom dbo.BillingDetails,其中日期介于@date1和@date2之间,按BillNo订购
谁能告诉我该怎么办