-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
How to editing Header? #2528
Comments
The error you encountered was due to trying to call setText() on a TextBreak element, which doesn't support text modification. The correct approach is to target the specific table element. Try the following method which may work correctly Access the table within the headers Access the rows and cells $cells = $targetRow->getCells(); Extract the text echo "5th column value: $value5\n"; |
Hello, I'm facing a problem - I can't read data from the header of my document. I have a table header in it, I tried different methods - an array is returned to me, but when reading data from there, I get a problem, please help.
Header into my 'docx' file
![image](https://private-user-images.githubusercontent.com/11741280/290182450-eaff9041-6746-45ac-a9eb-5cb67854efb0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4MTMyMDYsIm5iZiI6MTcyMjgxMjkwNiwicGF0aCI6Ii8xMTc0MTI4MC8yOTAxODI0NTAtZWFmZjkwNDEtNjc0Ni00NWFjLWE5ZWItNWNiNjc4NTRlZmIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA0VDIzMDgyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4MThlNDdiM2IyODc1OTNlZWI2Y2RhYjBmZjFhNTM3MDgxMjhlMDQ4MzAzM2I0OTEwZGE4OTQ0MzFhZGY2NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5fOwE0uI5XkacKLk6LbV6UfFUMMYSooLB5clpGO5CC0)
how do I get the value from the 5th and 6th column ?
The text was updated successfully, but these errors were encountered: