- 博客(5)
- 收藏
- 关注
转载 Export Excel File for C#
IntroductionUse C# Export Excel Files has been widely used for developers and programmers. Here, I made a small summary which I wish is useful for some of us.Add Reference and NamespaceAdd
2012-09-25 14:19:42 2652
转载 导出报表的几种方式
C#导出Excel报表在使用前首先需要添加引用:Microsoft.Office.Interop.Excel,然后在调用页添加如下语句:using Excel = Microsoft.Office.Interop.Excel;/**//// /// 导出为Excel格式文件 /// /// 作为数据源的DataTable
2012-09-25 14:18:59 1483
原创 ashx页面中调用自定义的Profile
在使用ashx页面处理数据时,如果你要使用Profile中自定义Profile会遇到一些麻烦,如果没有研究甚至会放弃使用ashx而改用aspx。其实要在ashx页面访问自定义的Profile也是很简单额如: ProfileCommon pc = (ProfileCommon)context.Profile; pc = pc.GetProfile(context.Profile.Use
2012-09-21 11:15:43 667
原创 正则表达式处理字符串
在对象序列化为Json或Json反序列化为对象的过程中,常常为遇到日期格式转换的问题。解决如下 /// /// JSON序列化 /// public static string JsonSerializer(T t) { string jsonString = JavaScriptC
2012-09-17 14:52:32 340
原创 c# 字符串处理
string字符串是char的集合,而char是Unicode的代码,所以string可以转化为int。字符串在参数传递时为引用传递;可以使用空字符串(”")或null。一、字符串类型转换1.转为char可以用索引器来得到字符串中指定的字符,如:string myString=”hello”;char myChars;myChars=myString[0];要想得到
2012-09-14 09:12:45 877
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人