文章分类 -  word

摘要:页面代码 序号 名称 数值 1 供电煤耗 g/(kw.h)--%> g/(kw.h) Response.ContentType = "application/ms-word"; Response.AddHeader("Content-Disposition", "i... 阅读全文
posted @ 2014-01-15 11:31 牡丹 阅读(175) 评论(0) 推荐(0)
摘要:在web.config中的内加入如下代码:httpRuntime是配置asp.net http运行时设置,以确定如何处理对asp.net应用程序的请求。 executionTimeout:表示允许执行请求的最大时间限制,单位为秒 maxRequestLength:指示 ASP.NET 支持的最大... 阅读全文
posted @ 2014-01-10 10:42 牡丹 阅读(156) 评论(0) 推荐(0)
摘要:添加引用 Aspose.Words;using Aspose.Words;using Aspose.Words.Saving;/// /// 导出word文档 /// /// /// protected void btn_word_Click(object sender, Even... 阅读全文
posted @ 2014-01-04 16:25 牡丹 阅读(567) 评论(0) 推荐(0)
摘要:protected void 上传_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { FileInfo fi = new FileInfo(FileUpload1.FileName); if (fi.Extension ==... 阅读全文
posted @ 2013-12-28 17:26 牡丹 阅读(139) 评论(0) 推荐(0)
摘要:#region 新建Word文档 /// /// 动态生成Word文档并填充内容 /// /// 文档目录 /// 文档名 /// 返回自定义信息 public bool CreateWordFile(string dir, string fileName) { try { Object o... 阅读全文
posted @ 2013-12-28 17:18 牡丹 阅读(131) 评论(0) 推荐(0)
摘要:using System;using System.Web;using System.IO;using System.Text;using System.Reflection;using System.Collections.Generic;using System.Diagnostics;/// ... 阅读全文
posted @ 2013-12-28 17:16 牡丹 阅读(221) 评论(0) 推荐(0)