你可以新建一个word模板,然后把内容按照模板的格式导出就是了。
解决方案 »
- 使用FileUpload 控件上传东西时出错,但是不提示错误。我复制了别的项目的web.config,就提示错误,并且运行能成功。
- c#问题关于选项卡的
- 请教:IndexOutOfRangeException的问题
- 分布于多台机器的程序求方案
- C#可不可通过thrift来访问hbase数据库
- csdn怎么了,老是出现“/”应用程序中的服务器错误,还有,它怎么能把具体的出错东西公开给用户看呢,你看下面的代码,多详细啊
- 如何获取已连接的远程主机信息,该信息用net use命令可以列表显示??
- 使用SqlConnection连接数据库出现奇怪问题???
- 如何在類中控制窗體上textbox的內容,
- 请问一个小问题!?
- 怎样RichTextBox得到文本当前光标插入位置?
- p2p传送文件
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);for (i = 0; i < ds.Tables[3].Rows.Count; i ++)
{
int intTableID = ""; //需要添加内容的tableID intRow = doc.Tables[intTable].Rows.Count;
doc.Tables[intTable].Cell(intRow,1).Range.Text
= ds.Tables[3].Rows[i]["ExperenceDate"].ToString();
doc.Tables[intTable].Cell(intRow,2).Range.Text
= ds.Tables[3].Rows[i]["Company"].ToString();
doc.Tables[intTable].Cell(intRow,3).Range.Text
= ds.Tables[3].Rows[i]["Department"].ToString();
doc.Tables[intTable].Cell(intRow,4).Range.Text
= ds.Tables[3].Rows[i]["Station"].ToString();
doc.Tables[intTable].Rows.Add(ref nothing);
}