I am trying to add a hyperlink (URI) to an external website from the content of a cell. It does not give any error during run-time. However, when I try to open the file, I cannot. It says that the file is corrupt.
The code is something like this:
if (artifact.ArtifactHyperlink != null)
artifactHyperlink = worksheet.Cell(mRow, mColumn);
artifactHyperlink.Value = artifact.ArtifactName.Replace("'", string.Empty);
artifactHyperlink.Hyperlink = artifact.ArtifactHyperlink;