10 2011 档案
摘要:获取网站根目录的方法有几种如:Server.MapPath(Request.ServerVariables["PATH_INFO"]) Server.MapPath("/") Server.MapPath("")Server.MapPath(".") Server.MapPath("../") Server.MapPath("..") Page.Request.ApplicationPath以上的代码在http://localhost/English
阅读全文
摘要:首先添加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) ...
阅读全文
摘要: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 {
阅读全文
摘要://用于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
阅读全文
摘要://------------------------------------------------------------//有緣无分的愛,终于和你失散在人海...过去的一点一滴,原来什么都不是//------------------------------------------------------------//ExcelEdit//Excel表格各种操作方法,可用于复杂报表//2011.07.17版本:1.0沙罗曼蛇创建//修改记录:// #region[ExcelEdit操作类]///<SUMMARY>///ExcelEdit的摘要说明//引入Excel的COM组件/
阅读全文
摘要:using System;using System.Data;using System.Xml;using System.Data.OleDb;using System.Collections;namespace Anboo.Steel.Utility{ /// <summary> /// The AccessHelper class is intended to encapsulate high performance, scalable best practices for /// common uses of SqlClient /// </summary> pu
阅读全文
摘要:using System;using System.Data;using System.Data.OracleClient;using System.Collections;namespace Anboo.Steel.Utility{ /// <summary> /// The OracleHelper class is intended to encapsulate high performance, scalable best practices for /// common uses of OracleClient. /// </summary> public s
阅读全文
摘要:using System;using System.Data;using System.Xml;using System.Data.SqlClient;using System.Collections;namespace Anboo.Steel.Utility{ /// <summary> /// The SqlHelper class is intended to encapsulate high performance, scalable best practices for /// common uses of SqlClient /// </summary> p
阅读全文

浙公网安备 33010602011771号