This project is read-only.

Pb with $document->setValue(‘Value1′, ‘Name on the first row’);

May 22, 2013 at 10:21 PM
Hi every body,

This evening i'am in trouble with the flwg :

instead of using
$document->setValue(‘Value1′, ‘Name on the first row’);
i want to change to
$document->setValue(‘first_name′, ‘Name on the first row’);
and i put in the template ${first_name} ==> error and no word document save!

How can i circumnavigate this pb to achieve what i want, i've a doc in which i include (i want to) about 190 MySql column data i'd prefer to use, in php script, the native MySql column name instead of value1... value190 !
May 23, 2013 at 9:11 PM
Any one to give me a hand ?
May 24, 2013 at 8:23 PM
I am a bit confused as to what your problem is. Is it that your word document does not save? Or is it that there is no output?
Jun 3, 2013 at 1:14 PM
how do I create the field in word ?
i have tried to set a DOCPROPERTY, DOCVARIABLE.
the phpword does not declare what is required exactly so left a bit uncertain.