04 2014 档案
摘要:Asp.net WebForm 获取当前页面提交的所有文件的方法Context.Request.Files Context.Request.Files.GetMultiple(Context.Request.Files.Keys[0]); 获取文件属性和保存文件for (int i = 0; i ...
阅读全文
摘要:public void ExportExcel(string excelLocation) { try { Byte[] fileBytes = File.ReadAllBytes(excelLocation); Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); Response.Cookies.Clear(); //Add the he...
阅读全文
摘要:#region NameSpaceusing System;using System.Linq;using System.Collections.Generic;using System.Web.UI.WebControls;using System.Transactions;using VAU.Dao;using VAU.Dto;using VAU.Domain;using VAU.EnumType;using VAU.Dao.NHibernate;using System.Web.UI;using Excel = Microsoft.Office.Interop.Excel;using S
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.IO; //Fileusing System.Diagnostics;//Processusing System.Reflection;//引用这个才能使用Missing字段using Excel = Microsoft.Office.Interop.Excel; //操作Excel using System.Data;//DataT
阅读全文

浙公网安备 33010602011771号