Beispiel #1
0
        private void method_1(DataGridView dataGridView_0, string string_0, string string_1)
        {
            ExportDataGridViewToExcel excel = new ExportDataGridViewToExcel(dataGridView_0);

            excel.ExportStartingEvent    += new EventHandler(this.method_4);
            excel.ExportProgressingEvent += new EventHandler(this.method_3);
            excel.ExportEndedEvent       += new EventHandler <ExportEndedEventArgs>(this.method_5);
            excel.ConvertToExcel(string_0, string_1);
        }
Beispiel #2
0
        private void method_0(DataGridView dataGridView_0, string string_0)
        {
            FileStream stream = new FileStream(string_0, FileMode.CreateNew, FileAccess.Write, FileShare.ReadWrite);
            ExportDataGridViewToExcel excel = new ExportDataGridViewToExcel(dataGridView_0);

            excel.ExportStartingEvent    += new EventHandler(this.method_4);
            excel.ExportProgressingEvent += new EventHandler(this.method_3);
            excel.ExportEndedEvent       += new EventHandler <ExportEndedEventArgs>(this.method_5);
            excel.ConvertToCSV(stream);
        }