zoukankan      html  css  js  c++  java
  • 保存Excel文件

             /// <summary>
            /// 保存Excel文件
            /// </summary>
            public void SaveExcel()
            {
                if (string.IsNullOrEmpty(strFilePathAndFileName))
                {
                    MessageBox.Show("操作有误,请联系管理员!");
                }
                else
                {
                    try
                    {

                        wbb.SaveAs(strFilePathAndFileName, Microsoft.Office.Interop.Excel.XlFileFormat.xlHtml, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);

                    }
                    catch (Exception)
                    {

                        MessageBox.Show("操作有误,请联系管理员!");
                    }

                }
            }

  • 相关阅读:
    简单的登录验证小程序_python
    远程执行命令_python
    远程执行本地脚本_linux
    反射_python
    ssh oa项目介绍
    返回上一级过程
    ssh框架开发crm(客户关系系统总结)
    struct相对路径,绝对路径
    <s:textfield>标签回显
    ssh框架整合
  • 原文地址:https://www.cnblogs.com/ok519/p/1570946.html
Copyright © 2011-2022 走看看