Free Support Forum - aspose.com

Problem with Removing External Links

Hi,

I am having problem removing external links from the attached Excel spreadsheet. Apparently, the following code doesn’t work because the modified version of the original document still has the links.

Workbook wb = new Workbook();
wb.Open(filename);
wb.RemoveExternalLinks();
wb.Save(filename + “_mod.xls”);

Thank you,
Greg

Hi,

Thanks for notifying it.

We found the problem and will fix it soon.

Thank you.

Hi,

Please try this fix.

In this fix,we use Cell.GetStyle and SetStyle method replace the property of Cell.Style. The two methods will save more memory usage than cell.Style property.

If you want to set style of the cell, please change your codes as :

//Getting the style of the cell.

Style style = cell.GetStyle();

//Setting the property of the style.

.......

//Setting the style of the cell

cell.SetStyle(style);