Hi, using Aspose .NET 5.2.1, I’m getting the following error: You want to put a string longer than 32K to Cell B5. MS Excel only allows to put a string shorter than 32K to a Cell.
SaveFormat.Pdf, or any other (non-excel) format.
Hi, using Aspose .NET 5.2.1, I’m getting the following error: You want to put a string longer than 32K to Cell B5. MS Excel only allows to put a string shorter than 32K to a Cell.
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
Your have given a valid reason.
Please download and try the latest version:
Aspose.Cells
for .NET v7.2.0.4
and see if it resolves the problem. Let us know your feedback.
If the problem still occurs, then please provide us your sample test code to replicate this issue. We will look into it and log it as a bug.
I can confirm that this error still occurs in v7.2.0.4.
Hi,
Thanks for your code example. I was able to replicate this issue using your code with the latest version:
Aspose.Cells
for .NET v7.2.0.5
I have attached the screenshot for a reference.
I have logged this issue in our database. Development team will investigate this issue and once the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as CELLSNET-40646.
C#
Thanks for your help.
Hi,
Please try the new fix v7.2.0.6.
We have provided a new option:
Workbook.Settings.CheckExcelRestriction
When you set this property as false, we will not give exception for long string value that is longer than 32K and you can save it completely to CSV file later. However, if you save the workbook as Excel
files, such as XLS, XLSX with such kind of invalid cell value, unexpected problem may occur for the created Excel file.
Thank you.
Brilliant, that’s a really quick turn-around! That does exactly what I needed.
The issues you have found earlier (filed as CELLSNET-40646) have been fixed in this update.
This works for me too.
Thank you!!
Good to know that your issue is sorted out by the suggested attribute. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.