下面的代码能够将一个bitmap图片显示在一个单元格内。效果图如下:





[C# Code]

FarPoint.Win.Spread.CellType.GeneralCellType g = new FarPoint.Win.Spread.CellType.GeneralCellType();
g.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("d:\\Koala.bmp"));
FpSpread1.ActiveSheet.Cells[0, 0].CellType = g;



[Visual Basic Code]

Dim g As New FarPoint.Win.Spread.CellType.GeneralCellType
g.BackgroundImage = New FarPoint.Win.Picture(Image.FromFile("d:\Koala.bmp"))
FpSpread1.ActiveSheet.Cells(0, 0).CellType = g