回复 1楼guxinghan的帖子
可以使用 HyperLinkCellType 来设置单元格链接:
- string str = "img\\fplogo.jpg";
- FarPoint.Web.Spread.HyperLinkCellType hlcell = new FarPoint.Web.Spread.HyperLinkCellType("str1");
- hlcell.ImageUrl = str;
- hlcell.NavigateUrl = "http://www.fpoint.com";
- hlcell.Target = "_self";
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = hlcell;
- FpSpread1.ActiveSheetView.Columns[0].Width = 150;
复制代码
删除则重置其单元格类型为 GeneralCellType 即可。 |