Set the ValueOf element string format or style

May 21, 2010 at 8:33 AM

Hello,

How can i set the ValueOf element string value to be Bold and Italic inside the template.docx using the Developer tab?

Thank you in advance.

Houssam Hamdan

Coordinator
May 21, 2010 at 8:45 AM

Add a space (or any other character) before or after the ValueOf (depending of the horizontal alignment) and format that space. When rendering the document, fleXdoc will look for style-settings on previous or following runs and copy them to the run that contains the ValueOf.

Word does not support applying styles to custom XML tags. Therefore this work-a-round was needed. However, the additional space is hardly ever a problem for anyone and when the ValueOf is inside a line of text, there are already styles around it to copy.

Good luck!
Robert

May 21, 2010 at 12:23 PM

Thank you Robert for your prompt and helpful reply.