daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

11 2012 档案

摘要://合并Excel文件 private void MargeExcelFile(string destFile, string dirPath) { DirectoryInfo dir = new DirectoryInfo(dirPath); FileInfo[] files = dir.GetFiles("*.xlsx"); Microsoft.Office.Interop.Excel.Application app = app = new Microsoft.Office.Interop.Exc... 阅读全文
posted @ 2012-11-30 15:18 daixinet.com 阅读(361) 评论(0) 推荐(0)

摘要:问题:1、导出数据的变量名称长度有限制 13版本的 8位2、变量为小写参考:http://blog.sina.com.cn/s/blog_67532f7c01012rw7.htmlhttp://spss.codeplex.com/ 阅读全文
posted @ 2012-11-15 11:04 daixinet.com 阅读(303) 评论(0) 推荐(0)

摘要:参考:http://www.jb51.net/article/22437.htm1、在web.config里配制<globalization requestEncoding="gb2312" responseEncoding="gb2312" />2、做URL的时候进行编码,然后再解码编码:id = HttpUtility.UrlEncode(id, System.Text.Encoding.GetEncoding("GB2312"));解码:id = HttpUtility.UrlDecode(id, System.Te 阅读全文
posted @ 2012-11-09 13:13 daixinet.com 阅读(244) 评论(0) 推荐(0)

摘要:参考:http://blog.csdn.net/ligenyingsr/article/details/6042287已经添加控件的div中添加标签,直接添加不行,必须得转换为string才可。//添加换行 System.Text.StringBuilder strb = new System.Text.StringBuilder(); System.IO.StringWriter sw = new System.IO.StringWriter(strb); System.Web.UI.HtmlTextW... 阅读全文
posted @ 2012-11-02 14:42 daixinet.com 阅读(745) 评论(0) 推荐(0)