Beispiel #1
0
 private void button5_Click(object sender, EventArgs e)
 {
     m_bc = ExcelUtil.AttachBook();
     if (m_bc != null)
     {
         m_sheet = m_bc.GetActiveSheet();
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (m_bc != null)
            {
                m_bc.Dispose();
                m_bc = null;
            }

            m_bc = ExcelUtil.OpenBook(m_sample_xls_file);
            m_bc.SetVisible(true);
            m_sheet = m_bc.GetActiveSheet();
        }