daochu

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了daochu相关的知识,希望对你有一定的参考价值。

 public ActionResult daochu()
        {
            HSSFWorkbook book = new HSSFWorkbook();
            ISheet sheet = book.CreateSheet("sheet1");
            IRow rows = sheet.CreateRow(0);
            rows.CreateCell(0).SetCellValue("编号");
            rows.CreateCell(1).SetCellValue("姓名");
            rows.CreateCell(2).SetCellValue("类");
     
            var data = new BLL.sBLL().getss();
            for (int i = 0; i < data.Rows.Count; i++)
            {
                IRow row1 = sheet.CreateRow(i+1);
                row1.CreateCell(0).SetCellValue(data.Rows[i]["ID"].ToString());
                row1.CreateCell(1).SetCellValue(data.Rows[i]["Name"].ToString());
                row1.CreateCell(2).SetCellValue(data.Rows[i]["AradeNo"].ToString());
            
            }
            MemoryStream sm = new MemoryStream();
            book.Write(sm);
            sm.Seek(0,SeekOrigin.Begin);
            return File(sm,"application/ved-excel","biaodan.xls");
        }

以上是关于daochu的主要内容,如果未能解决你的问题,请参考以下文章

oracle如何在本机导出dmp文件?

Linux 中 Oracle dmp 文件导入导出

Oracle数据备份与恢复(导入导出)CMD命令

Oracle数据库备份与还原命令 -- exp/imp

我用plsql导入oracle数据 imp hen/520 @H file=d:/daochu.dmp ignore=y 出现错误‘ora-00900’

oracle数据库表的导入导出cmd命令大全