I’ve problem with exporting records from model into MS Word document. Records contain strings and images, and should be exported to .doc file, with each record on separate page. I’m able to pass IDs of records for export to controller, but how to use phpWord with it???
It would be great if you could help me with example…
And, about writing the word contents, you have to follow the instructions of phpWord documents.
The programming in phpWord needs the same kind of knowledge when you do programming for word and/or excel in C# .net/Visual Basic/VB Script/macros. If you have experience in them, you will feel at home.
There’s nothing that Yii can do to help you there, except for providing the contents from db or so.
Note that phpWord can not write .DOC file. It only supports .DOCX file.