后台如何操作word 中table 左右间距
新版怎么不支持img 调用空间地址了?没办法只能发地址连接
http://img.my.csdn.net/uploads/201408/07/1407377029_1398.jpg
我添加了
可是左右还是有空隙。
菜鸟在这里请教各位大侠,怎么用代码去到Word中 table 里的td 内另一个table在td 中左右的距离
http://img.my.csdn.net/uploads/201408/07/1407377029_1398.jpg
//文档中创建表格
Microsoft.Office.Interop.Word.Table newTable = WordDoc.Tables.AddOld(WordApp.Selection.Range, 2, 3);
Microsoft.Office.Interop.Word.Table table2 = newTable.Tables.Add(newTable.Cell(2, 2).Range, 2, 2, ref Nothing, ref Nothing);//插入2行,2列表格
table2 .Borders.InsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleSingle;//内边框
table2 .Borders.OutsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleSingle;//外边框我添加了
table2 .Range.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphLeft;//左对齐可是左右还是有空隙。
菜鸟在这里请教各位大侠,怎么用代码去到Word中 table 里的td 内另一个table在td 中左右的距离
...全文
相关推荐
Qt操作word
qt操作word,插入图片,插入表格;字体设置,行间距设置;demo内附有word详细操作代码,支持office 和 wps。
cvi操作word,table
cvi生成word报告,在里面创建表格,操作各种表格格式,包括合并单元格,边框颜色等
matlab开发-table2word
matlab开发-table2word。使用标题和矩阵在Microsoft Word文档中创建表。
C#操作Word表格
分享C#操作Word表格的常用方法总结,c#操作word的代码比较少
C#操作word里面的书签
C#得到word里面的书签,并向书签插入内容,将DateGridView内容作为表格插入到word书签中。


