As long it is not dynamic and you do not need to mark a part of the text of an attribute you do not need any markup tags; Try the property Style in the DocumentTemplate in Mendix. Really works great for me to set the style of the attributes used in Word documents.
Mendix is using the property Style in the build up of the form. I was not able to trick that to make it more custom.
i think it would be an useful feature indeed, so i suggest adding a feature request. It is however a tricky feature as well, since arbitrary HTML might cause all kind of unexpected problems and distort your layout.
It would be a nice feature but also one that involves a lot of work rewriting the document generator and converting regular html into the format used for document generation. From your example I don't see any problems with simply using the style attribute in the document template editor though.
Hi Michel, Bas,
Yes, I agree, tricky. Moreover, I feel the Rich Text functionality is not complete in that RIch Text information is not always presented correctly. I didn't find the way to present Rich Text information in a grid correctly (without the tags) or in a Tooltip. This limits the usability of the Rich Text functionality severely to my opinion.
Bas, I don't think I can use the style attribute in the document template as I need to style parts of an attribute differently from other parts. The use case is an attribute Information with a meeting report in it complete with headers. In Word I want the same layout.
Thanks for your help. Toon