摘要:
object missing =System.Reflection.Missing.Value; ApplicationClass app = newApplicationClass(); app.SheetsInNewWorkbook = 1; app.Visible = true; Workbook wb =app.Workbooks.Add(XlWBATemplate.xlWBATWorksheet); Worksheet sheet =(Worksheet)wb.Sheets[1]; sheet.get_Range("A1","A1").Valu 阅读全文
posted @ 2013-02-01 17:50
蓬莱仙羽
阅读(215)
评论(0)
推荐(0)
摘要:
用C#写一个类,实现输入一个字符串,返回一个MD5值的调用public static string GetMD5(string sDataIn) { MD5CryptoServiceProvider md5 = newMD5CryptoServiceProvider(); byte[] bytValue, bytHash; bytValue =System.Text.Encoding.UTF8.GetBytes(sDataIn); bytHash =md5.ComputeHash(bytValue); md5.Clear(); string sTemp = ""; for 阅读全文
posted @ 2013-02-01 15:41
蓬莱仙羽
阅读(168)
评论(0)
推荐(0)