How to use template to create many page?

Sep 11, 2013 at 8:23 AM
template:

student name: age: form: class: no:
.
.
.

i use the example(30template.php to fill the cell), it is work. but i can't know how to create many page.

for example:
page1:
student name: johh age:12 form:P5 class:A no:1
.
.
.
page2:
student name: sum age:10 form:P4 class:A no:2
.
.
.
Page3:
student name: mary age:16 form:P3 class:A no:3
.
.
.
.
Sep 11, 2013 at 12:10 PM
Make a copy of your sheet : $NewSheet=$TemplateSheet->copy()
Change the title : $NewSheet->setTitle('Dont Exists in Workbook')
Add the sheet : $objPHPExcel->addSheet($NewSheet)

Perhaps broken in 1.7.9 (see topic "How to duplicate a Sheet")
Sep 11, 2013 at 2:48 PM
thanks for you reply.

But I want to create multiple pages on one sheet, no multiple sheets. Do you have other way? thanks
Sep 11, 2013 at 3:53 PM
Multiple pages to print ? See the setBreak() method (doc. 4.6.14).