摘要: 首先添加Com中的Excel插件。要在服务器安装Office。本例中是Office 2003实现例子:namespace Demo{ public partial class WebForm1 : System.Web.UI.Page { ExcelEdit.ExcelEdit excel = new ExcelEdit.ExcelEdit(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) ... 阅读全文
posted @ 2011-10-07 14:31 nogodsend 阅读(366) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using Microsoft.Office.Core;using Microsoft.Office.Interop.Excel;namespace ASS.Utility{ public class ExcelEdit { private string myFileName; public string MyFileName { get { return myFileName; } set { 阅读全文
posted @ 2011-10-07 14:22 nogodsend 阅读(262) 评论(0) 推荐(0) 编辑
摘要: //用于DataGridView和excel进行互操作的C#类// 文件名: Excel2DataGridView// 文件功能描述: C#中DataGridView控件和Excel互访问类,// 当前版本:V1.0.0////----------------------------------------------------------------*//* public string mFilename; public Excel.Application app; public Excel.Workbooks wbs; public Excel.Workbook wb; public E 阅读全文
posted @ 2011-10-07 14:15 nogodsend 阅读(710) 评论(0) 推荐(0) 编辑
摘要: //------------------------------------------------------------//有緣无分的愛,终于和你失散在人海...过去的一点一滴,原来什么都不是//------------------------------------------------------------//ExcelEdit//Excel表格各种操作方法,可用于复杂报表//2011.07.17版本:1.0沙罗曼蛇创建//修改记录:// #region[ExcelEdit操作类]///<SUMMARY>///ExcelEdit的摘要说明//引入Excel的COM组件/ 阅读全文
posted @ 2011-10-07 14:08 nogodsend 阅读(400) 评论(0) 推荐(0) 编辑