I had my script working well and it was populating data fine. I added two new field's in a table:
- position_tasks
- position_competences
Their data is pulled from a database. Now when I try to open the created word document I get prompted with a "Unspecified Error Location: Part: /word/document.xml, Line 2, Column:0"
So I open up the xml and on line 2 the whole document format. See Picutre
I notice that the data for the two new variables are giving displaying outside of this, Line 4 -19
Is it that they are list that's causing the problem? They should just text.
How would I fix that on my script
I set the Values as such:
$document->setValue('position_tasks', $positionTasks);
$document->setValue('position_competences', $positionCompetencies);Is it because they are showing up as lists and I have stored it into a single variable?
Thanks
XML Pic
0 comments:
Post a Comment