-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Ability to insert formatted html chunks to template. #110
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, @egig, how about using PHPWord_Template.setValue(...)? |
@RomanSyroeshko I can't, it generates errors. For those who probably want to help, I create the question: http://stackoverflow.com/questions/22292195/insert-html-to-docx |
@egig I think what you need is a parser that can interpret HTML tags into suitable PHPWord element, e.g. |
@ivanlanin yes, that is it, actually. Never mind, I'll take a look into the excel reader. it could be a solution. Thanks for the help. |
Check this solution: http://stackoverflow.com/questions/27312321/solved-phpoffice-phpword-loadtemplate-not-rendering-word-as-it-should .... i've tested with success, using https://h2openxml.codeplex.com/ |
The other answers, propose H2OXML which support just
from their docs and last update was in 2012, which wasn't a good option for me. I did some research and found a pretty nice solution.
The above example, shows how would be a striked text. Instead of "w:strike" you can use "w:i" for italic or "w:b" bold, and so on. Not sure if it works on all tags or not. |
has this gone any where really need this function |
You can add html to table cell, see example:
|
Omg thank you very much. Never though of using a table... I've used everything but a table! |
Hi, i have issue if use Numbering Please help sir, Thanks |
I have the same problem ¿do you found a solution? |
You must create a table from the Section object:
|
A request: It'll be great if we can insert html chunk to doc template, which is urgently I need to do now. e.g:
Is there anyone know how to do this, just for now ? by hack or something ?
Thanks.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: