Forum


Replies: 1   Views: 2641
Wrap a text from db
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Expertise  · 27-01-2018 - 13:41

Goodmorning everyone !

I use PhpDocX to get text from fields in a db and generate a word file.
Does anyone know how to wrap a text from DB?

For example:

The text in a TEXT field of the DB:
Hello,\n
my name \ n
is micky \ n

The result by generating the word file is:
hello, my name is micky

How can I keep the desired formatting even in the word file?

Hello everyone and excuse me for my bad english ;-)