Scenario: Aspose.Cells 24.4. Convert XLS to XLSX.
Issue: Custom properties that have no value are removed from the workbook.
Sample: original-loose-empty-props.zip (6.7 KB)
public static void ConvertXlsToXlsmAndLoosEmptyCustomProperties()
{
var filePath = "original-loose-empty-props.xls";
var resultFilePath = "converted-loose-empty-props.xlsm";
using (var wb = new Workbook(filePath, new LoadOptions()))
{
wb.Save(resultFilePath, SaveFormat.Xlsm);
}
using (var wb = new Workbook(resultFilePath, new LoadOptions()))
{
var newCount = wb.CustomDocumentProperties.Count;
if (newCount == 2)
throw Exception("4 expected");
}
}
For internal reference: MDP-19595
Thanks.