摘要:
objectfilePath=@"C:\"+DateTime.Now.ToShortDateString().Replace("-","")+DateTime.Now.ToLongTimeString().Replace(":","")+".xlsx";//文件保存路径 publicvoidGeneExcel(DataSetds){Excel.ApplicationClassxlApp=newExcel.ApplicationClass(); Workbooksworkboo 阅读全文
摘要:
/// <summary> /// 创建Word文档 /// </summary> /// <param name="ds">ds中每个datatable在word中生成一个表格</param> /// <returns></returns> public static string CreateWord(DataSet ds) { string msg = string.Empty; Object Nothing = System.Reflection.Missing.Value; //创建Word文 阅读全文