Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone row with other table below #554

Open
juanagu opened this issue Jun 16, 2015 · 1 comment
Open

Clone row with other table below #554

juanagu opened this issue Jun 16, 2015 · 1 comment

Comments

@juanagu
Copy link

juanagu commented Jun 16, 2015

Hi, i have this template http:https://www.filedropper.com/template_8 with two table.
When clone the row in the first tablet, these are cloned in this style:
captura de pantalla 2015-06-16 a las 10 44 39

code:

 $templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(
                '/path/to/template.docx');
        // Table with a spanned cell
        $templateProcessor->cloneRow('antecedent', 3);

        $templateProcessor->setValue('antecedent#1', htmlspecialchars('SINIESTROS  ANTERIORES'));
        $templateProcessor->setValue('antecedent#2', htmlspecialchars('SINIESTROS  ANTERIORES'));
        $templateProcessor->setValue('antecedent#3', htmlspecialchars('SINIESTROS  ANTERIORES'));
        $templateProcessor->saveAs(
                '/path/to/save/template.docx');

any solution?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@fishwolf
Copy link

+1
in my case new row cloned are out of main table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants