Formula lost with Worksheet.Copy()


I'm using Aspose.Excel v3.6.3 and I'm seeing formulas missing in a worksheet that has been copied from another worksheet. One of the specific formulas is:


I don't have any control over these formulas so I need for them to be copied correctly. Other formulas do get copied correctly as you will see in my sample. The code that I'm using is as follows and I'm providing the solution including sample .xls workbooks with formulas that aren't working (2 that aren't and 2 that are working).


Excel template = new Excel();
Excel dest = new Excel();
template.Open(AppDomain.CurrentDomain.BaseDirectory + "..\\..\\files\\template.xls");
dest.Open(AppDomain.CurrentDomain.BaseDirectory + "..\\..\\files\\dest.xls");

Worksheets sheets = dest.Worksheets;
int j = sheets.Add();
dest.Save(AppDomain.CurrentDomain.BaseDirectory + "..\\..\\output\\output.xls");


Please try this attached fix.