spread .net一个 单元格如何设置多个超链进行访问
FarPoint.Web.Spread.FpSpread中一个单元格如何添加多个超链接,如何进行编写呢,请教一下,谢谢。
FarPoint.Web.Spread.HyperLinkCellType linkcellExp = new FarPoint.Web.Spread.HyperLinkCellType();
linkURL = "" ;
linkcellExp.NavigateUrl = linkURL;
linkcellExp.Target = linkTarget;
FpSpread1.Sheets.Cells.CellType = linkcellExp;
FpSpread1.Sheets.Cells.Value = "Export";
FpSpread1.Sheets.Cells.VerticalAlign = VerticalAlign.Middle;
FpSpread1.Sheets.Cells.HorizontalAlign = HorizontalAlign.Center;
可以的,可以参考以下代码
fpSpread1.ActiveSheet.Columns.Width = 145;
fpSpread1.ActiveSheet.Rows.Height = 45;
FarPoint.Win.Spread.CellType.HyperLinkCellType mhp = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
mhp.Text = "FarPoint and Microsoft";
string[] s = new string[] { "www.fpoint.com", "www.microsoft.com" };
mhp.Links = s;
mhp.VisitedLinkColor = System.Drawing.Color.Maroon;
LinkArea[] la = new LinkArea[] { new LinkArea(0, 8), new LinkArea(13, 9) };
mhp.LinkAreas = la;
fpSpread1.ActiveSheet.Cells.CellType = mhp;
最终效果
您好,我这个里边没有您代码中的属性,请您帮忙写个Spead.net例子,谢谢。 抱歉,我以为你使用的是Winforms开发平台,以上代码确实不适用于Asp.net Webform
目前webform无法设置多个链接,单个链接具体的设置代码可以参考文档
https://www.grapecity.com/spreadnet/docs/v14/online-asp/spweb-sethyperlinkcell.html
页:
[1]