Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81909

Error opening Excel file produced by the Buttons extension Excel button

$
0
0

I am using the current version of the Buttons extension. When I produce an Excel document from the Excel button plugin, I got the following error from Excel when opening the document:

"Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
Repaired Part: /xl/worksheets/sheet1.xml part with XML error. Catastrophic failure Line 1, column 0."

This error only occurs when I suppress the title in the Excel output (and do not have a footer).

{
extend: 'excel',
title: null,
}

If I do add a footer, the problem goes away. It seems that the issue is with the mergeCells tag being present when no cells are being merged. In fact, if I delete this line, then the issue is resolved.

https://github.com/DataTables/Buttons/blob/54546ecb6b209cb0a678cb33c198b725e1d192d1/js/buttons.html5.js#L561

I wanted to report this bug and see if there is any way to work around it without editing source code.

Thank you!
Christina


Viewing all articles
Browse latest Browse all 81909

Trending Articles