RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
C#中如何操作Word表

今天就跟大家聊聊有关C#中如何操作Word表,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

网站建设哪家好,找创新互联!专注于网页设计、网站建设、微信开发、小程序设计、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了凤县免费建站欢迎大家使用!

C#操作Word之添加新表

object oMissing = System.Reflection.Missing.Value;   Word._Application oWord;   Word._Document oDoc;   oWord = new Word.Application();   oWord.Visible = true;   oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,      ref oMissing, ref oMissing);   object start = 0;   object end = 0;   Word.Range tableLocation = oDoc.Range(ref start, ref end);   oDoc.Tables.Add(tableLocation, 3, 4, ref oMissing, ref oMissing);

C#操作Word之表插入行

object oMissing = System.Reflection.Missing.Value;   Word._Application oWord;   Word._Document oDoc;   oWord = new Word.Application();   oWord.Visible = true;   oDoc = oWord.Documents.Add(ref oMissing, ref oMissing,      ref oMissing, ref oMissing);   object start = 0;   object end = 0;   Word.Range tableLocation = oDoc.Range(ref start, ref end);   oDoc.Tables.Add(tableLocation, 3, 4, ref oMissing, ref oMissing);   Word.Table newTable = oDoc.Tables[1];   object beforeRow = newTable.Rows[1];   newTable.Rows.Add(ref beforeRow);

C#操作Word之单元格合并

object oMissing = System.Reflection.Missing.Value;   Word._Application oWord;   Word._Document oDoc;   oWord = new Word.Application();   oWord.Visible = true;   oDoc = oWord.Documents.Add  (ref oMissing, ref oMissing,  ref oMissing, ref oMissing);   object start = 0;   object end = 0;   Word.Range tableLocation = oDoc.Range(ref start, ref end);

看完上述内容,你们对C#中如何操作Word表有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注创新互联行业资讯频道,感谢大家的支持。


网站栏目:C#中如何操作Word表
分享地址:http://scyingshan.cn/article/pscjhh.html