随笔分类 - C#基础
摘要:仅以记录重新学习中被遗忘的内容1、索引器 string s = "abcdefg"; char c = s[3];Console.Write(s[3]); char[] chs = s.ToCharArray();s = new string(chs);具体参考:go->索引器2、继承:基类 pu...
阅读全文
摘要:1. 服务器必须安装office. 安装offce2003,则vs中需引用Microsoft.Office.Interop.Word112007为Microsoft.Office.Interop.Word122010为Microsoft.Office.Interop.Word142. 一般报错为: ...
阅读全文
摘要:1:导出csusing System;using System.Collections.Generic;using System.Diagnostics;using System.IO;using System.Linq;using System.Web;using ICSharpCode.Shar...
阅读全文
摘要:需要先编辑一份word,为模板。然后需要添加的数据的地方添加书签(插入-书签)private string createBlsjDoc(System.Data.DataTable dt, int i, out string folder) { string fil...
阅读全文
摘要:js中使用get 的时候, ashx文件中,获取字符串 function check(id, sfsy) { $.get('/admin/ashx/check.ashx', { r: Math.random(), id: id, sfsy: escape(sfsy) }, fu...
阅读全文
摘要:/// /// 由DataTable导出Excel /// /// /// /// /// true为datatable列名 false为自定义列名 /// 自定义列名 已|分割 p...
阅读全文
摘要:/// /// 判断字符串全部是否是中文。返回true 则表示含有非中文 /// /// /// public bool IsChinese(string str_chinese) { ...
阅读全文
浙公网安备 33010602011771号