确定图片路径正确?msgbox("\\Citywsv\产品库$\家居\" & CurRow("原始图片"))
这样能不能显示图片?
rt.Cells(r+1,3).Image = GetImage("\\Citywsv\产品库$\家居\莫弗\(1.8M)床组23C002A-3011.jpg")
图片单独处理
Dim tb As Table = Tables("活动家居产品库")
Dim ColNames As String() = New String(){"分类","产品名称","型号","原始图片","备注"}
rt.Style.Font = tb.Font
For c As Integer = 0 To ColNames.Length - 1 '逐列设置和填入内容
rt.Cells(0,c).Text = ColNames(c) '列名作为标题
rt.Cells(0,c).Style.TextAlignHorz = prt.AlignHorzEnum.Center '标题内容水平居中
If ColNames(c) <> "备注" Then '
rt.Cols(c).Width = tb.Cols(ColNames(c)).PrintWidth
End If
For r As Integer = 0 To tb.Rows.Count -1 '开始填入该列内容
if ColNames(c) <>"原始图片"
rt.Cells(r + 1, c).Text = tb.Rows(r)(ColNames(c))
else
rt.Cells(r + 1,3).Image = GetImage(CurRow("原始图片")) 还是不显示图片 不知道哪里不多 求助
end if
Next
Next