
c#&office
jelenyoung
没啥说的
展开
-
c#调用word com组件 替换书签套打
c#调用word com组件 替换书签套打原创 2015-05-08 14:38:32 · 2419 阅读 · 0 评论 -
c#调用Aspose.Word组件操作word 插入文字/图片/表格 书签替换套打
由于NPOI暂时没找到书签内容替换功能,所以换用Apose.Word组件.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using原创 2015-05-08 15:08:50 · 12005 阅读 · 0 评论 -
C#调用NPOI组件读取excel表格数据转为datatable写入word表格中并向word中插入图片/文字/书签 获得书签列表
C#调用NPOI组件读取excel表格数据转为datatable写入word表格中并向word中插入图片/文字/书签 获得书签列表调用word的com组件将400条数据导入word表格中耗时10分钟简直不能忍受,使用NPOI组件耗时4秒钟.但是NPOI中替换书签内容的功能不知道是不支持还是没找到.原创 2015-05-08 14:57:10 · 3805 阅读 · 1 评论 -
c#使用aspose.cells 从datatable导出数据到excel
string json=value.Value; DataTable dt=Utils.JsonDataTableConvert.ToDataTable(json); string fileName = tableTemplate.Name + ".xls"; string原创 2015-05-29 09:37:18 · 2354 阅读 · 0 评论 -
Aspose.Words.Tables.Row类操作word表格行
http://www.aspose.com/docs/display/wordsnet/Aspose.Words.Tables.Row+ClassRetrieves the index of a row in a table.获得行索引[C#]int rowIndex = table.IndexOf(row);Shows how to mak转载 2015-06-09 20:28:40 · 11713 阅读 · 1 评论 -
Aspose.Word 操作word表格的行 插入行 添加行
rows.insert或rows.add前row必须有单元格cellprivate void button3_Click(object sender, EventArgs e) { object savePathWord ="row.docx"; File.Copy("rowtemplate.docx", savePathW原创 2015-06-09 21:29:54 · 12121 阅读 · 2 评论 -
Aspose.Word 操作word复杂表格 拆分单元格 复制行 插入行
private void button3_Click(object sender, EventArgs e) { object savePathWord ="row.docx"; File.Copy("rowtemplate.docx", savePathWord.ToString(),true);原创 2015-06-09 23:44:33 · 10813 阅读 · 1 评论 -
c#对Aspose.Word替换书签内容的简单封装
辅助类1 json和datatable互转: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Script.Serialization; //System.Web.Extensions.dllusing System.Collecti原创 2015-05-08 17:32:55 · 7492 阅读 · 0 评论