Hi,
While loading an Excel WorkBook getting error "Invalid FontUnderlineType string val
". Screenshot attached. Could you please help us resolve this issue.
aspose_cells_error.png (5.0 KB)
Hi,
While loading an Excel WorkBook getting error "Invalid FontUnderlineType string val
". Screenshot attached. Could you please help us resolve this issue.
aspose_cells_error.png (5.0 KB)
Thanks for the screenshot.
Could you please zip and attach the Excel file that you are loading via Aspose.Cells? We will check your issue soon.
Hi,
Please find the sample file attached.
Thank you
#527062 GUARDIAN_LIFE_report_6_2025.zip (661.7 KB)
Thank you for providing the template Excel file.
May I ask which version of Aspose.Cells for .NET you are currently using? I have tested your scenario using the latest Aspose.Cells for .NET v25.6, and it works perfectly without any exceptions. In the following test code, I utilized the provided file successfully without any issue/exception.
Workbook workbook = new Workbook("e:\\test2\\#527062 GUARDIAN_LIFE_report_6_2025.xlsx");
If you are not already using Aspose.Cells for .NET v25.6, I kindly recommend giving it a try. Please feel free to share your feedback once you do.
Thank you @amjad.sahi for your response.
Currently we are working with version 19.0.
Could you suggest me any code change we can do to fix this issue as currently we are unable to upgrade the version.
Below is the code line we are using:
LoadOptions loadOptions = new LoadOptions();
loadOptions.MemorySetting = MemorySetting.MemoryPreference;
Workbook workbook = new Workbook(FileName, loadOptions);
Thank you for your help
We are sorry but there is no better way to cope with it except using newer versions. Since you are currently using an older version, there are no viable alternatives available. Please note, over the years, we have implemented numerous enhancements and fixes to improve the robustness and functionality of our APIs. Therefore, we strongly recommend upgrading to the latest API version and testing your scenario again—it should work seamlessly.