-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Tempate - Modify checkbox value #1929
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
Comments
Hi, As i commented your previous issue here https://github.com/PHPOffice/PHPWord/issues/1791#issuecomment-569919076 you can modify state of checkbox in your teamplates. Also you can use my modifed TemplateProcessor.php file it's for v0.17 so no need to change your file if you are using latest version. And sending an example template docx includes several checkboxes that i use. |
Hi,
Thank you for your answer.
I try your code, bu I have an symfony error :
Cannot autowire service "App\Controller\TemplateProcessor": argument
"$documentTemplate" of method "__construct()" is type-hinted "string", you
should configure its value explicitly.
I use PhpWord V0.17 ; Symfony 4.4
Do you have a solution ?
Thank you !
Le dim. 6 sept. 2020 à 11:01, Özcan ARSLAN <notifications@github.com> a
écrit :
… Hi,
As i commented your previous issue here
#1791 (comment)
<http://url> you can modify state of checkbox in your teamplates. Also
you can use my modifed TemplateProcessor.php file it's for v0.17 so no need
to change your file if you are using latest version. And sending an example
template docx includes several checkboxes that i use.
template.docx
<https://github.com/PHPOffice/PHPWord/files/5179286/template.docx>
TemplateProcessor.zip
<https://github.com/PHPOffice/PHPWord/files/5179283/TemplateProcessor.zip>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1929 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVZPK3LY4TZLNNNXPMI4S3SENFWNANCNFSM4Q4CGPEQ>
.
|
使用setvalue()可以达到这个效果,只需要把你替换的值改成xml代码,例如: |
Fixed by #2509 |
Hi,
I have in my template *.docx an input type CheckBox.
But, I want to modify this value for my final document.
Is that possible ?
Actually, i use a Wingdings text.
Thank you for your answers...
The text was updated successfully, but these errors were encountered: