下面的代码能够将一个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
Spread在单元格中显示图片
热推产品
- ActiveReport... 强大的.NET报表设计、浏览、打印、转换控件,可以同时用于WindowsForms谀坔攀戀Forms平台下......
- AnyChart AnyChart使你可以创建出绚丽的交互式的Flash和HTML5的图表和仪表控件。可以用于仪表盘的创......
推荐产品