zoukankan      html  css  js  c++  java
  • ExportExcel

    本文链接:http://user.qzone.qq.com/108633744/blog/1219742370

    public static void ExportExcel(DataGridView dgv, Form frm, string title)
            {
                //Excel导出
                if (dgv.RowCount == 0)
                {
                    MessageBox.Show("没有数据要导出", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                Excel.ApplicationClass appExcel;
                Excel.Range selectRange;
                
                try
                {
                    appExcel = new Excel.ApplicationClass();
                    appExcel.Workbooks.Add(true);
                    appExcel.Visible = true;
                }
                catch
                {
  • 相关阅读:
    博雅机器学习十讲1
    tensorflow学习笔记1
    卓有成效的程序员3
    卓有成效的程序员2
    卓有成效的程序员1
    探索需求6
    数据预处理
    数据科学介绍
    探索需求5
    探索需求4
  • 原文地址:https://www.cnblogs.com/curtful/p/1290724.html
Copyright © 2011-2022 走看看