Grid++repor报表连接事件
程序员文章站
2022-04-24 13:12:52
//定义报表模板 private GridppReport Report = new GridppReport(); //载入报表模板数据 Report.LoadFromFile(GridppReportDemo.Utility.GetReportTemplatePath() + "program\ ......
//定义报表模板
private GridppReport Report = new GridppReport();
//载入报表模板数据
Report.LoadFromFile(GridppReportDemo.Utility.GetReportTemplatePath() + "program\\Sale detail of product.grf");
//设置与数据源的连接串,因为在设计时指定的数据库路径是绝对路径
Report.DetailGrid.Recordset.ConnectionString = GridppReportDemo.Utility.GetDatabaseConnectionString();
//连接报表取数事件
Report.Initialize += new _IGridppReportEvents_InitializeEventHandler(ReportInitialize);
Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecord);
//设定查询显示器关联的报表
axGRDisplayViewer1.Report = Report;
上一篇: 除了换了个抽象的Logo 乐视还盘点了2015全年业绩
下一篇: 手机厂商为何爱上“以旧换新”