Adding hyperlink corrupts the file

Topics: Developer Forum, User Forum
Mar 24, 2014 at 6:57 AM
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;