Initialize document property (W/P/E)

Modified on Mon, 5 Oct at 1:53 PM

This feature enables to add a blank document property in both Word, PowerPoint and Excel. Using the command below, we can insert one or several document properties.

CMD

<Cmd case="BaseExtensions:init-docprops" Names="x"/>

Parameter

Names

Define the name for the blank document property that is to be created. If you want to add more than one document property at a time, separate the names with semicolon.

Here is an example:

XML
<Button label="Initialize doc props">
  <Cmd case="BaseExtensions:init-docprops" Names="TestProp;TestProp2"/>
</Button>

With this command, two blank document properties have been created with the specified names.

fsfs.png

Note that this feature differs from the content-create feature in two important ways:

  1. The content-create feature CANNOT be used to create document properties with a space as a value, init-docprop can.
  2. The init-docprop feature can be used to create multiple document properties with a single cmd, content-create cannot

For creating a docprop aswell as asserting a value for it, please refer to this article

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article