首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么设置创建的word表格的框的粗细,多谢

2012-04-02 
如何设置创建的word表格的框的粗细,谢谢?如题[解决办法]用宏记录一下操作就可以看到VBA的代码了.With Opti

如何设置创建的word表格的框的粗细,谢谢?
如题

[解决办法]
用宏记录一下操作就可以看到VBA的代码了.

With Options
.DefaultBorderLineStyle = wdLineStyleSingle
.DefaultBorderLineWidth = wdLineWidth600pt
.DefaultBorderColor = wdColorAutomatic
End With

[解决办法]
你要设置的是表格对象中的单元格的边框的宽度的属性。
tbl.??? 应该是:
tbl.Cell.Borders(wdBorderBottom).LineWidth = Word.WdLineWidth.wdLineWidth150pt;

tbl.Cell.Borders.LineWidth = Word.WdLineWidth.wdLineWidth150pt;

热点排行