摘要: templatecolumn列:{ xtype: 'templatecolumn', tpl: [ '查看备注' //此处可以传递record对象里的属性,暂时没找到直接传递record对象的方... 阅读全文
posted @ 2015-06-13 15:22 Ace001 阅读(456) 评论(0) 推荐(0)
摘要: private void button3_Click(object sender, EventArgs e) { object savePathWord ="row.docx"; File.Copy("rowtemplate.docx", savePathWord.ToS... 阅读全文
posted @ 2015-06-09 23:44 Ace001 阅读(3845) 评论(1) 推荐(1)
摘要: rows.insert或rows.add前row必须有单元格cellprivate void button3_Click(object sender, EventArgs e) { object savePathWord ="row.docx"; File.Copy("ro... 阅读全文
posted @ 2015-06-09 21:29 Ace001 阅读(5698) 评论(0) 推荐(2)
摘要: http://www.aspose.com/docs/display/wordsnet/Aspose.Words.Tables.Row+ClassRetrieves the index of a row in a table.获得行索引[C#]int rowIndex = table.IndexO... 阅读全文
posted @ 2015-06-09 20:28 Ace001 阅读(6004) 评论(0) 推荐(1)
摘要: //list=list.OrderBy(ee => SqlFunctions.CharIndex("书记,主任,支部委员,村委委员,系统工作人员", ee.ZhiWu)).ToList(); //linq to sql中报错:只能在linq to entities中调用此方法. int ... 阅读全文
posted @ 2015-06-03 18:47 Ace001 阅读(2125) 评论(1) 推荐(0)
摘要: string json=value.Value; DataTable dt=Utils.JsonDataTableConvert.ToDataTable(json); string fileName = tableTempl... 阅读全文
posted @ 2015-05-29 09:37 Ace001 阅读(1391) 评论(0) 推荐(0)
摘要: var plet3=Ext.create('portaltest3.view.Portlet', { title: '提醒', layout:'fit', height:300, items:Ext.crea... 阅读全文
posted @ 2015-05-21 13:34 Ace001 阅读(189) 评论(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 阅读(165) 评论(0) 推荐(0)
摘要: 辅助类1 json和datatable互转: 辅助类2 Excel表格数据和datatable互转: 书签内容替换封装: 调用: 效果: 打印 doc.Print(); 文本替换 doc.Range.Replace("{{name}}", "张三", false, true); 版权声明:本文为博主 阅读全文
posted @ 2015-05-08 17:32 Ace001 阅读(2971) 评论(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 阅读(4873) 评论(0) 推荐(0)