|
![Picture of Hadassa Golovenshitz Picture of Hadassa Golovenshitz](/graphics/unknown.gif) Hadassa Golovenshitz - 2013-11-24 20:06:52
Hi,
Thank you so much for this great class!
I was able to generate a docx file for download with plain vars filled in, but for a repeating table I couldn't get it to work.
Here is a part of my code:
$answers = array();
while($get_row = mysql_fetch_assoc($rs)){
$answers[] = array('q' => $get_row['label'], 'a' => $get_row['answer']);
}
...
$tmp->addParceDoc( array(
'student' => 'Hadassa Golovenshitz',
'date' => 'Today',
'form_answers' => $answers
));
This correctly fills in the date and student variables, but not the form_answer ones.
Here is a copy/paste of my template docx:
Date: {var.date}
Student: {var.student}
Form: {var.form_name}
{tbl.form_answers {
Question Answer
$ q $ a
}}
Thank you so much!!!
![Picture of Raskin Veniamin Picture of Raskin Veniamin](/picture/user/1111972.gif) Raskin Veniamin - 2013-11-27 16:29:52 - In reply to message 1 from Hadassa Golovenshitz
Hi.
Write me your email, i'll send you example file .docx. This site not support binary files.
![Picture of Jarek Picture of Jarek](/graphics/unknown.gif) Jarek - 2014-01-07 23:23:41 - In reply to message 2 from Raskin Veniamin
Hi Vench, I also have problem with tables, can You provide some working example ? I have managed to fill only one row.
My mail is jarek@3e.pl
![Picture of Mark Cloke Picture of Mark Cloke](/graphics/unknown.gif) Mark Cloke - 2014-02-08 17:13:08 - In reply to message 2 from Raskin Veniamin
Hello, Would you be kind enough to send me an example also please.
mark.cloke@oldswords.com
![Picture of charith Picture of charith](/graphics/unknown.gif) charith - 2014-06-11 14:11:14 - In reply to message 2 from Raskin Veniamin
Hey Vench, This is very cool stuff. Thank a million for it. Please send me a copy of docx file to cjanitha @ gmail .com
Thank a lot man! appreciate it a lot.
![Picture of Prakash Indorkar Picture of Prakash Indorkar](/graphics/unknown.gif) Prakash Indorkar - 2014-10-05 06:20:29 - In reply to message 2 from Raskin Veniamin
Hi vench,
I want to use this class in cakephp. As you know it is a MVC framework. I am not getting how to implement it with cakephp. Also please send me example files if you have any, to get more familiar how it works.
Really appreciated man. Nice to see people help each other and knowledge sharing is the best policy ever.
Thanks & Regards.
![Picture of Prakash Indorkar Picture of Prakash Indorkar](/graphics/unknown.gif) Prakash Indorkar - 2014-10-05 06:23:08 - In reply to message 6 from Prakash Indorkar
Sorry forgot to give you my email
its prakash9986@gmail.com
![Picture of Raskin Veniamin Picture of Raskin Veniamin](/picture/user/1111972.gif) Raskin Veniamin - 2014-10-05 10:45:23 - In reply to message 7 from Prakash Indorkar
|