<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILESAVE XLSX write includes col record incompatible with LibreOffice"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125380">125380</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE XLSX write includes col record incompatible with LibreOffice
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.3.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Calc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dev@sheetjs.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When saving a new file to the XLSX file format, LO writes the following column
record:

    <col collapsed="false" customWidth="false" hidden="false" outlineLevel="0"
max="1025" min="1" style="0" width="11.52"/>

"min" and "max" are 1-indexed and inclusive, so this describes columns A:AMK. 
LO currently supports 1024 columns so that column AMK is technically outside of
the valid range.

The following two records are equivalent to the one LO writes:

    <col collapsed="false" customWidth="false" hidden="false" outlineLevel="0"
max="1024" min="1" style="0" width="11.52"/>
    <col collapsed="false" customWidth="false" hidden="false" outlineLevel="0"
max="1025" min="1025" style="0" width="11.52"/>

However, due to the column restriction, the latter elicits a warning.

The fix is to write that col record with range up to 1024:

    <col collapsed="false" customWidth="false" hidden="false" outlineLevel="0"
max="1024" min="1" style="0" width="11.52"/>


Actual Results:
LO-generated XLSX references column 1025

Expected Results:
LO-generated XLSX should not reference unsupported columns


Reproducible: Always


User Profile Reset: Yes



Additional Info:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>