public void OnInitializeDataSet(RdlRuntime.InitializeDataSetEventArgs args) { if (InitializeDataSet != null) { InitializeDataSet(this, args); } }
public void Initialize(System.Data.DataSet ds) { RdlRuntime.InitializeDataSetEventArgs args = new RdlRuntime.InitializeDataSetEventArgs(); args.DataSetName = _name; Report.OnInitializeDataSet(args); if (args.dt != null) { _table = args.dt; } else { _query.Exec(ds, _name); _table = ds.Tables[_name]; } }