回复 1楼tianyake的帖子
请你尝试通过以下方法设置,看能否成功:
- ' Specify a cell
- fpSpread1.Col = 2
- fpSpread1.Row = 3
- ' Define cell type as button
- fpSpread1.CellType = CellTypeButton
- ' Insert picture in the cell
- fpSpread1.TypeButtonPicture = LoadPicture("C:\Samples\Files\CAMCORD.BMP")
- ' Set button text
- fpSpread1.TypeButtonText = "Manufacturer"
- ' Define the text color
- ' dark blue, RGB(0, 0, 128)
- fpSpread1.TypeButtonTextColor = &H800000
- ' Align text right and picture left
- fpSpread1.TypeButtonAlign = TypeButtonAlignRight
- ' Set the column width to display text and picture
- fpSpread1.ColWidth(2) = 15
- ' Set the row height to display entire picture
- fpSpread1.RowHeight(3) = 20
复制代码 |