Hay algunas maneras de ir sobre él:
1) Para utilizar URI, a continuación, establezca un nombre legible por humanos
var cell = sheet.Cells["A1"];
cell.Hyperlink = new Uri("http://www.google.com");
cell.Value = "Click me!";
2) Para utilizar ExcelHyperlink y establecer un nombre legible por humanos usando objeto iniciador
var cell = sheet.Cells["A1"];
cell.Hyperlink = new ExcelHyperlink("http://www.google.com") { Display = "Click me! };
3) Para utilizar = hipervínculo fórmula()
var cell = sheet.Cells["A1"];
cell.Formula = string.Format("HYPERLINK({0},{1})", "http://www.google.com", "Click me!");
cell.Calculate();
¿No puedes usar la fórmula ** = HYPERLINK() **? –
has probado ** hoja de trabajo. Celdas [i, j] .Hyperlink ** = new Uri (localfilepath)? –
@TimWilliams que no funcionará porque los datos se cargan desde un conjunto de datos. – IEnumerator