单元格里加了HyperLinkCellType
- FpSpread1.ActiveSheetView.Columns[1].Width = 145;
- FpSpread1.ActiveSheetView.Rows[1].Height = 45;
- string linkImage = @"images\fplogo.jpg";
- string linkURL = "http://www.componentone.com";
- string linkTarget = "_blank";
- FarPoint.Web.Spread.HyperLinkCellType linkcell = new FarPoint.Web.Spread.HyperLinkCellType();
- linkcell.ImageUrl = linkImage;
- linkcell.NavigateUrl = linkURL;
- linkcell.Target = linkTarget;
- FpSpread1.ActiveSheetView.Cells[1, 1].CellType = linkcell;
复制代码 |