Export Word - Text alignment

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Cat
User
Posts: 58

Export Word - Text alignment

Post by Cat »

Hello everyone

files exported with phpword extension do not open

Versión 2024.8


arbei
User
Posts: 9097

Post by arbei »

Note that PhpWord exports .docx only. If it cannot be opened, the export might not be successful, you may open it with a text editor and check the content. You should also enable Debug and check the logs.


Cat
User
Posts: 58

Post by Cat »

The exported file could be opened with open office.

Error with office365, word2017

additionally when opening the text alignment does not work as it says in the improvements of version 2024.8

Improved: Support text alignment on export (PhpSpreadsheet/PhpWord extensions)


arbei
User
Posts: 9097

Post by arbei »

I only tested with office.com and it works fine. As for text alignment, make sure you have set the Style -> Align setting under View Tag.


Cat
User
Posts: 58

Post by Cat »

Hello, I just identified that all the tables that have a text field export but the file does not open when removing said field, it works


Cat
User
Posts: 58

Post by Cat »

solved thank you

2024.8


Post Reply