-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments will not be read #3665
Comments
Thank you for providing a sample spreadsheet. Your fix is okay as far as it goes. However, it is not the only problem with this spreadsheet. Even with your change, it does not read the Table correctly, because the third party package uses namespacing for Tables which PhpSpreadsheet does not yet expect. So, the complete solution may take a while. As a workaround which might be useful for you, you can open the spreadsheet in Excel and save it as a new spreadsheet; PhpSpreadsheet will not have a problem with the new one. |
Thank you for the WA. I've tested it and I've seen that it works as
expected. Later on Business Central accepts it back, so there's no need to
fix the library but just advising the user to do the WA.
*Gustavo Díaz López*
*Segopi Corporate Group*
*ADVERTENCIA LEGAL*: De conformidad con lo establecido en el REGLAMENTO
(UE) 2016/679 de protección de datos de carácter personal, le informamos *que
los datos que usted nos facilite serán incorporados al sistema de
tratamiento titularidad de TELLING CONSULTING, S.L. con CIF **B40271926 y
domicilio social sito en C/ GUADARRAMA, No 11, SEGOVIA, con la finalidad de
PUBLICIDAD Y PROSPECCIÓN COMERCIAL; GESTIÓN DE CLIENTES, CONTABLE, FISCAL Y
ADMINISTRATIVA.*
*Se procederá a tratar los datos de manera lícita, leal, transparente,
adecuada, pertinente, limitada, exacta y actualizada.* Mientras no nos
comunique lo contrario, entenderemos que sus datos no han sido modificados
y que usted se compromete a notificarnos cualquier variación.
De acuerdo con los derechos que le confiere la normativa vigente *podrá
ejercer los derechos de acceso, rectificación, limitación de tratamiento,
supresión, portabilidad y oposición al tratamiento de sus datos de carácter
personal *así como revocar el consentimiento prestado, dirigiendo su
petición a la dirección postal indicada o al correo electrónico
***@***.*** y podrá dirigirse a la Autoridad de Control competente para
presentar la reclamación que considere oportuna.
*ADVERTENCIA*: La información contenida en este correo electrónico, y en su
caso, cualquier fichero anexo al mismo, son de carácter privado y
confidencial siendo para uso exclusivo de su destinatario. Si usted no es
el destinatario correcto, el empleado o agente responsable de entregar el
mensaje al destinatario, o ha recibido esta comunicación por error, le
informamos que está totalmente prohibida cualquier divulgación,
distribución o reproducción de esta comunicación según la legislación
vigente y le rogamos que nos lo notifique inmediatamente, procediendo a su
destrucción sin continuar su lectura.
El consumo de papel es perjudicial para el medio ambiente. Por favor
téngalo en cuenta antes de imprimir este mensaje.
El mar, 1 ago 2023 a las 21:28, oleibman ***@***.***>)
escribió:
… Thank you for providing a sample spreadsheet. Your fix is okay as far as
it goes. However, it is not the only problem with this spreadsheet. Even
with your change, it does not read the Table correctly, because the third
party package uses namespacing for Tables which PhpSpreadsheet does not yet
expect. So, the complete solution may take a while. As a workaround which
might be useful for you, you can open the spreadsheet in Excel and save it
as a new spreadsheet; PhpSpreadsheet will not have a problem with the new
one.
—
Reply to this email directly, view it on GitHub
<#3665 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBUZKDHJHH5BQZKGWNGK6NDXTFKBFANCNFSM6AAAAAA27UZJSA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fix PHPOffice#3665. The original issue was the use of an absolute path in the rels file pointing to the comments file. That was easy to take care of, but a bigger problem with the spreadsheet accompanying the problem report was that it used unexpected spacing for AutoFilters and Tables. AutoFilters were already known not to be covered, but Tables appeared after the namespacing changes, but without namespacing support. This PR fixes the absolute path problem and adds namespacing support for Tables and AutoFilters. Remaining areas which are still namespace unaware, mainly because of the absence of test samples which use them with unexpected namespacing, include conditional formatting (internal or external), sheet view options, sheet protection, unparsed loaded data, data validation (internal or external), alternate content, and header/footer images.
* Xlsx Reader Namespacing for Tables, AutoFilters Fix #3665. The original issue was the use of an absolute path in the rels file pointing to the comments file. That was easy to take care of, but a bigger problem with the spreadsheet accompanying the problem report was that it used unexpected spacing for AutoFilters and Tables. AutoFilters were already known not to be covered, but Tables appeared after the namespacing changes, but without namespacing support. This PR fixes the absolute path problem and adds namespacing support for Tables and AutoFilters. Remaining areas which are still namespace unaware, mainly because of the absence of test samples which use them with unexpected namespacing, include conditional formatting (internal or external), sheet view options, sheet protection, unparsed loaded data, data validation (internal or external), alternate content, and header/footer images. * Mysterious Warning for Php7.4 Only Node no longer exists, doesn't affect result. Suppress warning. * Scrutinizer What would a change be without some new false positives? * Scrutinizer A gift that keeps on giving :-( Now it's deciding that things that it didn't report in a scan from a few minutes ago are worth reporting, even with no relevant code changes. * Scrutinizer It is an idiot. Let me see if I can fix one false positive and succeed in guessing where it might report another one, even though it didn't do so with this last run.
This is:
What is the expected behavior?
Return comments into a cell
What is the current behavior?
Return empty comments
What are the steps to reproduce?
First of all, sorry for my poor English.
If relationships Targets are defined as full paths Xlsx::loadSpreadsheetFromFile will not work properly.
Example:
<?xml version="1.0" encoding="utf-8"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableSingleCells" Target="/xl/tables/tableSingleCells1.xml" Id="R7794038cb2c64bae"/>
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="/xl/comments1.xml" Id="Red2c67a5311c43a9"/>
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="/xl/drawings/vmldrawing.vml" Id="Re97db53ed0e14c5f"/>
<Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="/xl/tables/table1.xml" Id="Rc27115a48a714b5e"/>
</Relationships>
This is the way Microsoft Business Central (formerly Navision) exports data to XLSX format.
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
Sample:
MIG01.xlsx
What features do you think are causing the issue
WA I have used this and It works for me, although I am not sure if it will work right always:
In Reader/Xlsx.php, line 795, just after $fileWorksheet = (string) $worksheets[$sheetReferenceId]; I have added this piece of code:
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
xlsx
Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet: 1.29.0
php: 8.2.8
The text was updated successfully, but these errors were encountered: