老师看下代码,请帮我举下例子,控制表格上线的粗细与颜色
另外,用.AddCells 方法添加多字段时能用class吗,就如:.AddCells("销售金额","回款金额","class='bth1'") 我试过这样写不行的
With wb.AddTable("","Table1")
With .body.AddRow()
.AddCell("合同/现金单汇总","colspan='5' class='sh1'")
End With
With .body.AddRow()
.AddCell("项目","class='bth1'")
.AddCell("方量","class='bth1'")
.AddCell("均价","class='bth1'")
.AddCell("销售金额","class='bth1'")
.AddCell("回款金额","class='bth1'")
End With
Dim i As Integer = 888
With .body.AddRow()
.AddCell("统计日","class='bth1'")
.AddCell(i,"class='nr'")
.AddCell(i,"class='nr'")
.AddCell(i,"class='nr'")
.AddCell(i,"class='nr'")
End With
End With