可以给列头中单元格指定ImageCellType:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.CellType.ImageCellType imgct = new FarPoint.Win.Spread.CellType.ImageCellType();
- imgct.Style = FarPoint.Win.RenderStyle.Stretch;
- fpSpread1.ActiveSheet.Cells[0, 0].CellType = imgct;
- fpSpread1.ActiveSheet.ColumnHeader.Cells[0, 0].CellType = imgct;
- fpSpread1.ActiveSheet.ColumnHeader.Cells[0, 0].Value = Image.FromFile("XXXX.png");
- }
复制代码 |