telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

Workbook.Save() does not save specific files #5463

Open veselints opened 4 years ago

veselints commented 4 years ago

SendAsJson_updated.zip

Bug report

Workbook.Save() does not save the below file: https://supportheroes.telerik.com/clientsfiles/6bc8932a-4fae-43c1-b745-e1fe2b2f6493_flvj-v3.zip

Reproduction of the problem

Here is what has been discovered while troubleshooting this issue:

Telerik.Windows.Documents.Spreadsheet.Model.Workbook workbook; IWorkbookFormatProvider formatProvider = new Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider();

using (Stream input = new FileStream(filePath, FileMode.Open)) { workbook = formatProvider.Import(input);

using (MemoryStream memoryStream = new MemoryStream())
{
    formatProvider.Export(workbook, memoryStream);

    using (FileStream fileStream = new FileStream(Server.MapPath("~/App_Data/test.xlsx"), FileMode.Create))
    {
        memoryStream.WriteTo(fileStream);
    }
}

}


- I have also tried many different approaches. Removing the first sheet entirely resolves the issue. Reducing the number of rows and columns and removing all formulas also resolves the issue. Removing only the formulas or only reducing the rows/columns results in the long saving and the error at the end.

### Expected/desired behavior
The file should be saved to Memory/FileStream properly.

### Environment
* **Kendo UI version:** 2019.3.1023
* **Browser:** [all] 
mihaela-lukanova commented 1 year ago

Increased priority due to a report in 1590685