The purpose of this feature is to update a document/presentation/spreadsheet to the open xml type of file. This is valid for all legacy documents created before 2003 (when Microsoft introduced OpenXML structure). We need it because we want to store some info about the document in the CustomXML and since the legacy documents do not support it, we need to upgrade them.
CMD
<Cmd case="BaseExtensions:save-as-openxml"/>
After executing this, the user receives a file dialog to save this file in a newer format (OpenXML one). If the save was successful, the commands that are defined afterwards will be executed. In contrast, if the save was unsuccessful or the user pressed "Cancel", all commands after the above will not executed.
Example of usage
Example from a client (anonymized with "[clientname]":
<Cmd case="BaseExtensions:save-as-openxml"/>
<Cmd case="BaseExtensions:AddCustomXml">
<TemplafyFormConfiguration>Some data</TemplafyFormConfiguration>
</Cmd>
<Cmd case="BaseExtensions:AddCustomXml">
<TemplafyTemplateConfiguration>Some data</TemplafyTemplateConfiguration>
</Cmd>
<Cmd case="BaseExtensions:content-create" type="document-property" name="TemplafyTenantId" value="[clientname]"/>
<Cmd case="BaseExtensions:content-create" type="document-property" name="TemplafyTemplateId" value="996904937100485859"/>
Comments
0 comments
Article is closed for comments.