开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 3283|回复: 0

DevExpress 根据条件查询绑定报表功能

[复制链接]

0

精华

100

贡献

33

赞扬

帖子
132
软币
3320
在线时间
53 小时
注册时间
2013-8-31
发表于 2013-9-1 14:45:47 | 显示全部楼层 |阅读模式
        /// <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();
        }

评分

参与人数 2贡献 +1 赞扬 +2 收起 理由
dsir + 1 感谢分享
羽叶 + 1 + 1 感谢分享

查看全部评分

回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-4 07:09

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表