.net SpreadSheetGear控件(在Excel中添加超链接)

this.agcell.Workbook.ActiveWorkbook.Worksheets.Add();

                                            this.agcell.Workbook.ActiveWorkbook.Worksheets[this.agcell.Workbook.ActiveWorkbook.Worksheets.Count - 1].Name = "截图" + sheetIndex.ToString();

                                            this.agcell.Workbook.ActiveWorkbook.Worksheets[this.agcell.Workbook.ActiveWorkbook.Worksheets.Count - 1].Shapes.AddPicture(AGClient.Common.Custom.AppInfo.DataPath + @"\" + @"images\" + imageFile + ".jpg", 0, 0, 950, 900);
                                            this.agcell.Workbook.ActiveWorkbook.Worksheets[workSheetIndex].Hyperlinks.Add(this.agcell.Workbook.ActiveWorkbook.Worksheets[workSheetIndex].Cells[index, 6], string.Empty, "截图" + sheetIndex.ToString() + "!A1", "", "打开");

你可能感兴趣的:(C#)