コード例 #1
0
ファイル: Shedules.cs プロジェクト: hprog/exchange
 public void GeneralExportFill(DatabaseConstant.Facilities f, Exports.IExportable exp)
 {
     this.generalExportTableAdapter.FillGeneralExport(sportDataSet.GeneralExportTable, (int)f);
     this.exportBindingSource = this.generalExportTableBindingSource;
     provider = new ExcelExport(this.exportBindingSource, f);
     provider.SetExportBehaviour(exp);
 }
コード例 #2
0
ファイル: Shedules.cs プロジェクト: hprog/exchange
        //экспортируем график соревнований
        private void exportMatchs_Click(object sender, EventArgs e)
        {
            this.graphicReportTableAdapter.FillGraphic(sportDataSet.GraphicReport, fromDate, toDate);

            try
            {
                provider = new ExcelExport(this.graphicReportBindingSource, 0);
                provider.SetExportBehaviour((Exports.IExportable)(new Exports.SportGraphicExport()));

                //выполняем экспорт
                ExecuteProcess();
            }
            catch { }
        }