Last Updated: 21 Oct 2020 06:43 by ADMIN
Created on: 26 Aug 2020 11:49
Category: Spreadsheet
Type: Bug Report
Excel file created with Workbook toDataURL method is corrupted

Bug report

Excel file is corrupted when it is created with the kendo.ooxml.Workbook toDataURL method, using stringified sheet data:

let dataURL = new kendo.ooxml.Workbook(JSON.stringify(data)).toDataURL();

If the data is passed to the Workbook without stringifying it, this causes a circular reference error (check the console).

let dataURL = new kendo.ooxml.Workbook(data).toDataURL();

Reproduction of the problem

Dojo example.

  1. Click the "To Json" button above the Spreadsheet.
  2. Try to open the generated file in Excel.

Current behavior

The generated Excel file is corrupted

Expected/desired behavior

The generated Excel file is not corrupted


  • Kendo UI version: 2020.2.617
  • jQuery version: x.y
  • Browser: [all]