Example #1
0
 private void toolStripButton7_Click(object sender, EventArgs e)
 {
     SqlBoxXLSWrite sw = new SqlBoxXLSWrite();
     sw.list = GetTabLv("MySQL","sqlView");
     if (sw.list == null)
         return;
     SaveFileDialog sd = new SaveFileDialog();
     if(sd.ShowDialog()== DialogResult.OK)
     {
         sw.WriteDateToExcel(sd.FileName, msm.LviList, "A1", "H1");
     }
 }
Example #2
0
 private void toolStripButton8_Click(object sender, EventArgs e)
 {
     if (massMsg.IsEmpty)
     {
         MessageBox.Show("Не создано ни одной рассылки");
         return;
     }
     SaveFileDialog sd = new SaveFileDialog();
     if (sd.ShowDialog() == DialogResult.OK)
     {
         SqlBoxXLSWrite sw = new SqlBoxXLSWrite();
         //sw.list = currentView;
         sw.list = (EnhancedListView)tabControl1.SelectedTab.Controls[0];
         char lastCahr = (char)((int)'A' + sw.list.Columns.Count);
         sw.WriteDateToExcel(sd.FileName, msm.LviList, "A1", "" + lastCahr + "1");
     }
 }
Example #3
0
 private void createReport_Click(object sender, EventArgs e)
 {
     SqlBoxXLSWrite sw = new SqlBoxXLSWrite();
     sw.list = (EnhancedListView)tabControl1.SelectedTab.Controls[0];
     if (sw.list == null)
         return;
     SaveFileDialog sd = new SaveFileDialog();
     if (sd.ShowDialog() == DialogResult.OK)
     {
         //List<ListViewItem> collection = ((GetCollection)sw.list.Tag)();
         sw.WriteDataToExcel(sd.FileName, massMsg.LviList);
     }
 }