Page 1 of 1

OpenDope from Microsoft Store?

PostPosted: Wed Nov 11, 2020 10:34 am
by shashankmudgal19
Is there a way other than using the OpenDoPE word add-ins to add a conditional content control to a Word document that can be replaced by docx4j?
I tried using the IF<> statements in Word to hide/show a text based on a variable in the IF condition but am not able to feed the value to the variable.

I need a standard way like using Microsoft Word itself to add a conditional content control as at my workplace, we prefer using word add-ins that can be integrated using Microsoft store itself due to security concerns.

Any examples/useful links are welcome.

Re: OpenDope from Microsoft Store?

PostPosted: Tue Nov 17, 2020 10:00 am
by jason
The existing OpenDoPE authoring add-in are built using VSTO, which only run in Office on Windows.

We're working on a new "Office Add-In", which would meet your requirements. See further https://docs.microsoft.com/en-us/office ... ce-add-ins Too early to provide an ETA yet though for when it will be ready.

In the meantime, an alternative might be to use one of the third party templating syntaxes like pebble https://pebbletemplates.io/wiki/tag/if/ or possibly https://github.com/opensagres/xdocrepor ... nCondition

You could use a templating approach directly (ie without XML data binding), and in due course, programmatically convert the template commands to XML bound content controls.

Or, in a "publish" step, you could convert the templating commands to content controls, and use OpenDoPE for run time processing from the beginning.

But it might be more straightforward to get a limited exemption to use the existing VSTO add-in for a while...