I am creating an excel file programatically and I am trying to add a hyperlink containing the path to the excel file. Is there any way using Aspose.Cells to set the value of CELL("filename") in an excel sheet and embed that value in a hyperlink?
I am doing the following:
string hyperlinkFormula = "=HYPERLINK(\"http://localhost/index.html?filePath\" & CELL(\"filename\"),\"Upload File\")";
cells[UPLOAD_HYPERLINK_CELL].Formula = hyperlinkFormula; // <== Exception is thrown here
StackTrace:
Aspose.Cells.CellsException: Error in Cell: B7-Invalid formula:"=HYPERLINK("http://localhost/index.html?filePath" & CELL("filename"),"Upload File")". at Aspose.Cells.x40937ad35b1cf5f7.x1f490eac106aee12(Cell xe6de5e5fa2d44af5) at Aspose.Cells.Cell.set_Formula(String value) at