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