用C#把数据库中的记录按格式写入Word文档中
来源:互联网 发布:常用算法时间复杂度 编辑:程序博客网 时间:2024/05/29 10:26
使用Word的COM组件。
Word._Application app = new Word.ApplicationClass();
app.Visible = false;
object nothing = System.Reflection.Missing.Value;
object temp = Environment.CurrentDirectory + @"/resume.doc"; //文档模板
Word.Document doc = app.Documents.Open(ref temp,ref nothing,ref nothing,ref nothing,
ref nothing,ref nothing,ref nothing, ref nothing, ref nothing,
ref nothing,ref nothing,ref nothing,ref nothing,ref nothing,ref nothing,ref nothing);//打开模板
doc.Tables[1].Cell(1,2).Range.Text = ""; // 给单元格添加内容
//给单元格插入图片
doc.Tables[1].Cell(1,5).Range.InlineShapes.AddPicture(ImgPath,ref nothing,ref nothing,ref nothing);
- 用C#把数据库中的记录按格式写入Word文档中。
- 用C#把数据库中的记录按格式写入Word文档中
- 用C#把数据库中的记录按格式写入Word文档中
- 用C#把数据库中的记录按格式写入Word文档中。
- 用C#把数据库中的记录按格式写入Word文档中
- 把文本中的记录写入数据库中
- 把文本中的记录写入数据库中
- 如何把数据库的内容写入到Word文档中
- 如何把数据库的内容写入到Word文档中?
- C#中写入与保存Word文档
- 把word文档写入Sqlserver
- C#将数据库内容写入Word中
- Javascript 将数据库中的数据写入WORD文档的表格中
- 如何把数据库以二进制存储的excel,word文档写入excel,word
- 在Delphi中如何把数据库中的记录引到word中
- 在Delphi中如何把数据库中的记录引到word中
- 利用C#向word文档中写入数据
- 利用C#向word文档中写入数据
- 精妙Sql语句
- 使用VS.NET生成word文档并直接下载
- 如何生成word文档的源码
- SQLServer的COUNT()指令
- 控制表格大小控制表格大小
- 用C#把数据库中的记录按格式写入Word文档中
- 学了ARM开发可以干什么
- ubuntu下安装ns2出错(二)
- DELPHI enablecontrols,disablecontrols函数
- 写于项目开始之前
- window.open()的所有参数列表
- inet_addr 和 汉字转数字方法
- Asp.net1.0 升级 ASP.NET 2.0 的几个问题总结
- 学习笔记-----EL