when I try to use the invoice2013 file (which I assume I need to use given my Word version), it appears Word considers the file corrupt. when I tried to use the invoice.docx file, the same errors occur.
I have a case where I need to show something like:
{{business name}}
{{doing business as}} // conditionally, if this company has a "DBA" field in the DB
{{mailing address}}
if the business is not DBA, then I would expect output like this (notice there is no blank line....the content is removed...not just invisible):
{{business name}}
{{mailing address}}
I can't seem to find anything online that deals with the version of Word I'm using along with the authoring tool. As I understand it, I need to use the OpenDope stuff to make use of conditionals. I'm very confused and just need some help getting started
my "template" docx is bound to custom XML like so:
- Code: Select all
<bind>
<hasDba>true</hasDba>
<legalName>{{legal name}}</legalName>
<dba>{{doing business as}}</dba>
<address>{{mailing address one line}}</address>
</bind>
at run time I'm replacing the xml with either
- Code: Select all
<bind>
<hasDba>true</hasDba>
<legalName>some business name</legalName>
<dba>foo business</dba>
<address>123 fake street</address>
</bind>
-- or
<bind>
<hasDba>false</hasDba>
<legalName>{{legal name}}</legalName>
<dba></dba>
<address>{{mailing address one line}}</address>
</bind>
thanks for any help!