karurkarthi / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

list with html item #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 
I want to generate a docx which contains a list of items and these items have 
some html fields.
The form is as follows :
Start
«[#list developers as developer]»
PERSON ‘«${DEVELOPER.NAME}»’
«${developer.lastName}»
«${developer.description}»
«[/#list]»

the field 'developer.description' is an html text.
But what I get is something like this:

PERSON ‘ZERR’
Angelo
<p>html text</p>

PERSON ‘LECLERCQ’
Pascal
<p>other <b>html</b> text</p>

how to set up the htmlsyntax for values of a list?

thanks for your help
Régis

Original issue reported on code.google.com by rba...@gmail.com on 14 Nov 2013 at 10:48

Attachments:

GoogleCodeExporter commented 9 years ago
------------------------------------------------------------------------------
metadata.addFieldAsTextStyling( "developer.description", SyntaxKind.Html );
------------------------------------------------------------------------------

doesn't work? But I think the best option is to use @FieldMetadata annotation 
https://code.google.com/p/xdocreport/wiki/FieldsMetadataTemplate

Original comment by angelo.z...@gmail.com on 14 Nov 2013 at 10:58

GoogleCodeExporter commented 9 years ago
Hi Angelo,
metadata.addFieldAsTextStyling doesn't seem to work but @FieldMetadata 
annotation is ok and simplest in my case as I have list inside list.
Thanks a lot
Best regards
Régis

Original comment by rba...@gmail.com on 15 Nov 2013 at 12:20

GoogleCodeExporter commented 9 years ago
I close this issue, but it's strange that 

------------------------------------------------------------------------------
metadata.addFieldAsTextStyling( "developer.description", SyntaxKind.Html );
------------------------------------------------------------------------------

doesn't work?

Original comment by angelo.z...@gmail.com on 18 Feb 2014 at 2:28