Forum


Replies: 3   Views: 324
Block inside of a variable
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 admin  · 21-07-2023 - 07:27

Hello,

What block method are you using that doesn't work with your document?  Maybe you need to load the updated DOCX as a new template using CreateDocxFromTemplate?

Regarding the deleteBlock question, please note that this method removes all contents between two block variables and it includes the following option:

type

Delete type: block (default) or inline.

The block type removes paragraphs contents, and the inline type removes inline contents.

If you send to contact[at]phpdocx.com the most simple script that illustrates the code you are running we'll check it. We need to run it, so this script must use phpdocx standalone (without using external resources such as databases, web services, frameworks, CMS...). Also please attach the DOCX template you are using.

Regards.