回复 1楼iceman的帖子
HyperLinkCellType 链接设置方法如下:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- return;
- this.FpSpread1.OpenExcel("filename");
- FarPoint.Web.Spread.HyperLinkCellType hyperCellType = new FarPoint.Web.Spread.HyperLinkCellType();
- hyperCellType.NavigateUrl = "http://gcdn.grapecity.com/showtopic-4751.html";
- hyperCellType.Target = "_blank";
- for (int i = 0; i < this.FpSpread1.Sheets[0].RowCount; i++)
- {
- this.FpSpread1.Sheets[0].Cells[i, 0].CellType = hyperCellType;
- }
- }
复制代码 |