clearBlocks

clearBlocks

BASIC / ADVANCED / PREMIUM

Removes remaining BLOCK type variables from the Word document.

Description
public void clearBlocks()

The BLOCK variables are wrappers of content. They are used to remove unwanted parts of the document on "run time".

This method removes the remaining BLOCK variables that have not been already removed by the deleteTemplateBlock method, i.e. content that was not removed from the original template.

Code samples

Example #1

The resulting Word document looks like: