摘要: 代码: /// <summary> /// 上传文件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Button1_Click(object sender, EventArgs e) { if (this.FileUpload1.PostedFile.FileName == "") { Respons... 阅读全文
posted @ 2012-07-07 22:34 要等闲阿 阅读(469) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-07 11:35 要等闲阿 阅读(8) 评论(0) 推荐(0)
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebExcelJs.WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&g 阅读全文
posted @ 2012-07-07 11:23 要等闲阿 阅读(434) 评论(0) 推荐(0)
摘要: 第三种方法:View Code function getXlsFromTbl(inTblId, inWindow) { try { var allStr = ""; var curStr = ""; if (inTblId != null && inTblId != "" && inTblId != "null") { curStr = getTblData(inTblId, inWindow); } ... 阅读全文
posted @ 2012-07-07 10:04 要等闲阿 阅读(375) 评论(0) 推荐(0)
摘要: function toExcel2() { var curTbl = document.getElementById("tableToEXC"); var oXL = new ActiveXObject("Excel.Application"); //创建AX对象excel var oWB = oXL.Workbooks.Add(); //获取workbook对象 var oSheet = oWB.ActiveSheet; //激活当前she... 阅读全文
posted @ 2012-07-07 08:16 要等闲阿 阅读(1260) 评论(1) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-07 00:01 要等闲阿 阅读(24) 评论(0) 推荐(0)