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.
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
Hello,
Please read the answer in your previous post:
http://www.phpdocx.com/en/forum/default/topic/914
Regards.