上一页 1 ··· 14 15 16 17 18
摘要: //list=list.OrderBy(ee => SqlFunctions.CharIndex("书记,主任,支部委员,村委委员,系统工作人员", ee.ZhiWu)).ToList(); //linq to sql中报错:只能在linq to entities中调用此方法. int ... 阅读全文
posted @ 2015-06-03 18:47 Ace001 阅读(2095) 评论(1) 推荐(0) 编辑
摘要: string json=value.Value; DataTable dt=Utils.JsonDataTableConvert.ToDataTable(json); string fileName = tableTempl... 阅读全文
posted @ 2015-05-29 09:37 Ace001 阅读(1368) 评论(0) 推荐(0) 编辑
摘要: var plet3=Ext.create('portaltest3.view.Portlet', { title: '提醒', layout:'fit', height:300, items:Ext.crea... 阅读全文
posted @ 2015-05-21 13:34 Ace001 阅读(183) 评论(0) 推荐(0) 编辑
摘要: grid的某一列添加renderer:renderer: function(value, metaData, record, rowIndex, colIndex, store, view) { metaData.tdAttr = 'data-qtip="'+value+'"'; ... 阅读全文
posted @ 2015-05-20 14:24 Ace001 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 辅助类1 json和datatable互转: 辅助类2 Excel表格数据和datatable互转: 书签内容替换封装: 调用: 效果: 打印 doc.Print(); 文本替换 doc.Range.Replace("{{name}}", "张三", false, true); 版权声明:本文为博主 阅读全文
posted @ 2015-05-08 17:32 Ace001 阅读(2901) 评论(0) 推荐(0) 编辑
摘要: 由于NPOI暂时没找到书签内容替换功能,所以换用Apose.Word组件.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;... 阅读全文
posted @ 2015-05-08 15:08 Ace001 阅读(4709) 评论(0) 推荐(0) 编辑
摘要: 调用word的com组件将400条数据导入word表格中耗时10分钟简直不能忍受,使用NPOI组件耗时4秒钟.但是NPOI中替换书签内容的功能不知道是不支持还是没找到.辅助类 Excel表格数据与DataTable互转:using System;using System.Collections.Ge... 阅读全文
posted @ 2015-05-08 14:57 Ace001 阅读(2766) 评论(1) 推荐(1) 编辑
摘要: 安装office2007,添加com引用Microsoft Word12.0 Object Library和Microsoft Office12.0 Object Libraryusing System;using System.Collections.Generic;using System.Li... 阅读全文
posted @ 2015-05-08 14:38 Ace001 阅读(793) 评论(1) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18