Forum


Replies: 1   Views: 3492
How to find word stly to use it for pstyle
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by Sven May  · 12-02-2015 - 10:37

Hello! I would like to ask that how to call or refer a Word style like Heading 1 or any opther styles. What I want: add title-s to my generated doc to be able to show them in TOC. I add titles with addText() method and try to use pStyle. What I do not know: what is the refernce name of the Word style? What I found in doc: pStyle => Heading1PHPDOCX or Heading2PHPDOCX but it is not work :( Shall I add Word stlye somehow? Thanks