Example #1
0
 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);
 }
Example #2
0
        //экспортируем график соревнований
        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 { }
        }