我的报告查看器rdlc报告未显示数据。该报告完全空白。我检查了我在数据集表适配器中写的查询,它是正确的。我尽我所能尝试了一切,但数据没有加载。我只是无法弄清楚什么是问题。 相同的代码适用于我附加差异表的另一个报告。代码是:
命名空间BillingMaster { 公共部分类ReportAllForm3:表单 { public ReportAllForm3() { 的InitializeComponent(); }
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();
}
}
}
我只将日期列作为日期数据类型。 我正在写下面的查询:
SELECT SrNo,Package,Type,DiscPer,DiscAmt,TotalAmt,noofttkts,BillNo,TaxAmt,Rate,BillNoTop,PackageTop,DiscperTop,DiscAmtTop,TaxPerc,Tax,Date FROM dbo.BillingDetails where date in date1和@ date2 order作者:Billno
任何人都可以告诉我该怎么办?