需要保存成文件,然后将图片路径给ImageCellType。或者将图片转换为base64的string
- FarPoint.Web.Spread.ImageCellType imagecell = new FarPoint.Web.Spread.ImageCellType();
- imagecell.ImageUrl = "img\\fplogo.jpg";
- imagecell.ImageAlign=System.Web.UI.WebControls.ImageAlign.Right;
- imagecell.TextOnRight = true;
- imagecell.CssClass = "CssStyle1";
- FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
复制代码 |