如何在VB6的某些单元格中打印带有图片的msflexgrid?
发布于 2010-10-05 02:41:10
我认为您必须首先选择网格单元格,可选地设置单元格图片对齐方式,然后使用LoadPicture (如果您使用磁盘上图片的文件路径)或LoadResPicture (如果您使用资源文件中的图片)加载图片。
With MSFlexGrid1
.Row = 1
.Col = 1
.RowSel = 1
.ColSel = 1
.CellAlignment = flexAlignCenterCenter
Set .CellPicture = LoadPicture("C:\My Pictures\Me.bmp")
' Alternatively:
' Set .CellPicture = LoadResPicture(MY_PROFILE_PIC_ID)
End Withhttps://stackoverflow.com/questions/3857702
复制相似问题