VFP如何设置WORD表格单元格的背景色?
各位高手,能指教下VFP如何设置WORD表格单元格的背景色吗?谢谢了
oWord = CreateObject("Word.Application")
WITH oWord
.Visible = .T.
.Documents.Add()
myTable = .ActiveDocument.Tables.Add(.Selection.Range, 2, 5)
wdColorGreen = 32768
myTable.Cell(1, 4).Shading.BackgroundPatternColor = wdColorGreen
ENDWITH