XDocReport & "advanced" table formatting

527 views
Skip to first unread message

rackamm...@gmail.com

unread,
Mar 6, 2014, 3:58:12 AM3/6/14
to xdocr...@googlegroups.com
Hi everybody,

I trying to make some table with XDocReport but i didn't manage to make this work.

I've some xml node :
<attributes>
    <attribute name="att1">
         <description>C1</description>
    </attribute>
    <attribute name="att2">
         <description>C2</description>
    </attribute>
    <attribute name="att3">
         <description>C3</description>
    </attribute>
    <attribute name="att4">
         <description>C4</description>
    </attribute>
    <attribute name="att5">
         <description>C5</description>
    </attribute>
    <attribute name="att6">
         <description>C6</description>
    </attribute>
<attributes>

I trying to put them in a table like that:      

|-------------------------||-------------------------||-------------------------|
|        Type          ||          Desc        ||          Item        |     
|-------------------------||-------------------------||-------------------------|
|                         ||                         ||                         |
|         att1           ||           att2        ||            att3        |  
|                         ||                         ||                         |         
|-------------------------||-------------------------||-------------------------|
|                         ||                         ||                         |
|        att4            ||           att5        ||            att6        |  
|                         ||                         ||                         |        
|-------------------------||-------------------------||-------------------------|

I played with @before-row/@after-row annotation combined with @before-cell/@after-cell and modulo 3 to create the new row when 3 cells are created with no luck.

It is the right way ?

Regards         

Angelo zerr

unread,
Mar 6, 2014, 4:05:42 AM3/6/14
to xdocr...@googlegroups.com
Hi,

Your case is complex like you you said. I suggest at first to try to manage it with a simple freemarker template HTML (with table/tr)
and post your question of Freemarker forum.

Once you will teh well syntax, you could try to use with XDocReport. But as I said you, I think it's better to prepare your data to put for teh docx report.
But perhaps you wish not to do that for performance reason?

It seems you do some complex case with Freemarker+XML in XDocReport, it should be very cool if you can add some sampes at https://code.google.com/p/xdocreport/wiki/FreemarkerTemplateContextXML

Regards Angelo


--
You received this message because you are subscribed to the Google Groups "xdocreport" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdocreport+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

rackamm...@gmail.com

unread,
Mar 6, 2014, 4:18:28 AM3/6/14
to xdocr...@googlegroups.com
Yes, i need to generate javadoc of some java function and generate a docx document for each function. (I just have a template that i can fill with javadocs data, no "complex" java code allowed ;-( )

No problem, if i manage to do some "complex" table report, i'll push them in the repo !

Thx for the answer !

Regards
Reply all
Reply to author
Forward
0 new messages