asp操作word,如何设置表格边框的线型?
asp操作word,如何设置表格边框的线型?我要生成的表格四周为粗边框,及表格行间距为固定12磅,要如何操作?录制宏的VBA用了没效果。
我的部分代码
Set tabCurrent = oapp.Application.ActiveDocument.Tables.Add (oapp.Application.Selection.range,10,6) '插入表格 10行6列
tabCurrent.Rows(1).Cells(1).Range.InsertAfter("ZZZZZZZZZZZZZZZZZZZZZZZ")
tabCurrent.style="网格型"
tabCurrent.TopPadding = 0
tabCurrent.BottomPadding = 0
tabCurrent.LeftPadding = 0
tabCurrent.RightPadding =0
tabCurrent.Spacing = 0
tabCurrent.AllowPageBreaks = True
tabCurrent.AllowAutoFit = True
tabCurrent.Borders.InsideColor = wdColorRed
tabCurrent.Borders.OutsideColor = wdColorRed
tabCurrent.Borders.Enable = true
将边框线换颜色也没有效果