PhpSpreadsheet/tests
oleibman 7ddf6ccf41
PrintArea Causes Exception
I wanted to investigate #1523, but I couldn't duplicate its results
because the sample code in the issue caused an Exception to be thrown.
The exception happened because, when the Print Range Set method is
set to Insert (as oppposed to Overwrite), and the Print Range is
empty, it is created with a leading or trailing comma, and Writer/Xlsx
objects. This is, in a sense, a user error, but the software should
be more resilient. This can be accomplished by ensuring that no
leading or trailing comma is generated when Print Range is empty.

This code change fixes that problem. Since I couldn't reproduce the
original, I can't say for sure that it fixes it. However, with the
sample code provided, I can write a spreadsheet which Excel reads
without any problems, so it probably fixes the original.

Closes  #1544
Fixes #1523
2020-07-26 12:15:57 +09:00
..
PhpSpreadsheetTests PrintArea Causes Exception 2020-07-26 12:15:57 +09:00
data Merge branch 'master' into Page-Setup-Page-Order 2020-07-26 10:50:41 +09:00
bootstrap.php Keep sample bootstrap purely in samples 2020-05-17 18:51:13 +09:00