08 2012 档案

摘要:View Code #region 中文转拼音 public string getSpells(string input) { int len = input.Length; string reVal = ""; for (int i = 0; i < len; i++) { reVal += getSpell(input.Substring(i, 1)); } return reVal; ... 阅读全文
posted @ 2012-08-14 14:08 宋佳莉 阅读(239) 评论(0) 推荐(0)
摘要:今天做报表的时候遇到了多表头的问题,而且相应的报表的格式都一样。所以就采用了报表模板的方式来进行。第一步:在开发的当前项目中引入:Microsoft.Office.Interop.Excel;System.Reflection;命名空间。第二步:获取要导出的数据;第三步:创建一个Excel 应用程序://需要添加 Microsoft.Office.Interop.Excel引用 Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();如果,app = .. 阅读全文
posted @ 2012-08-11 19:50 宋佳莉 阅读(1117) 评论(0) 推荐(0)
摘要:View Code using System;using System.IO;using System.Data;using System.Drawing;using System.Drawing.Imaging;using System.Windows.Forms;using Excel;private void EduceExcel() { string picPath=Directory.GetCurrentDirectory()+'\\Excelpic.jpg'; string ExcelName=Directory.GetCurrentDirectory()+' 阅读全文
posted @ 2012-08-11 19:44 宋佳莉 阅读(1077) 评论(0) 推荐(0)