DevExpress 根据条件查询绑定报表功能
/// <summary>/// 根据条件查询绑定报表功能
/// </summary>
/// <param name="where">条件查询</param>
private void DatabindReport(string where)
{
DevExpress.XtraReports.UI.XtraReport report = new DevExpress.XtraReports.UI.XtraReport();
report.LoadLayout(Application.StartupPath + @"\BillReport.repx");
if (where != "")
{
report.DataSource = BLL.BillInfo.GetDataSet(where, "");
}
else
{
report.DataSource = BLL.BillInfo.GetDataSet("", "");
}
report.ShowPreviewDialog();
report.Dispose();
}
页:
[1]