In a C# standalone environment with these nuget packages installed
<PackageReference Include="Aspose.Cells" Version="24.10.0" />
<PackageReference Include="Aspose.Slides.NET" Version="24.10.0" />
<PackageReference Include="DocumentFormat.OpenXml" Version="3.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
With the following file
bugs.2027 - Copy.zip (476.0 KB)
I use OpenXML to open/update the underlying data for this object
#region Aspose Ignore This Part
then I use Aspose Libraries in order to save and run all “update” procedures.
// Refresh things using Aspose
Since I run these “RefreshData” methods from Aspose, I would assume these are the ones I need to call. However, I notice when I open the file again, the data does not appear to be updated, although I have to not only open the file, but open the excel object to finally see the updated data.
Observe this as at first, the left hand table has 4 rows;
1st Phorm
Living Essentials LLC
Ghost Energy
0.0
But after the code is run, another row, “Dr Pepper” should be added.
I notice one part of this code that may be a culprit
CalculationOptions opts = new()
{
Recursive = true,
IgnoreError = true
};
Set IgnoreError
to false and an exception is being thrown, but I can’t see why this would be thrown in this area.
code.zip (4.2 KB)