StimVinsh / xdocreport

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

A more complex table - the union of cells #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!
A simple iteration of the java beans list works well! And I would like to use 
xdocreport for reports generation in my project.

But I need some more functionality - something like ROWSPAN in HTML for 
rendering objects list below:

List<Process> processes

class Process {
  private String name;
  private List<System> systems;
}

class System {
  private String name;
  private List<DataType> dataTypes;
}

class DataType {
  private String name;
}

Expected result in attachment expected_output.docx

Is there any way to do it with using current version? If no - could 
You implement this possibility in the near future?

Original issue reported on code.google.com by roman.de...@gmail.com on 30 Mar 2012 at 2:52

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

I have never done your complex case. But there is a similar sample in 
docxandfreemarker-xxx-sample.zip (DocxTableWithoutFieldsMetadataWithFreemarker) 
and docxandvelocity-xxx-sample.zip (DocxTableWithoutFieldsMetadataWithVelocity)

It uses @before-row and @before-cell (see 
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainListFieldAdvancedT
able) 

Those samples loop for developers to generate a row per developer and cells to 
generate a cell per roles of current developer. Try to unedrstand thi sample to 
adapt it with your case.

Hope you will have not problem.

Regards Angelo

Original comment by angelo.z...@gmail.com on 30 Mar 2012 at 3:04

GoogleCodeExporter commented 8 years ago
Hi,

Is there news about this issue? I have the same need for my project and it 
seams to be impossible with @before-row, @after-row, I try a lot of combination 
but i did not reach expected results. Any suggestions? 

Regards Adem

Original comment by adem.kil...@oxand.com on 15 Apr 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Hi Adem,

I had no time to investigate about this topic. To manage this case, you could 
write your own preprocessor and modify the ooxml word/document.xml to add the 
well (Freemarker/Velocity) loop directive. 

Regards Angelo

Original comment by angelo.z...@gmail.com on 15 Apr 2013 at 8:52

GoogleCodeExporter commented 8 years ago
Hi Angelo,

Well, I will do that thanks for your help.

Resgards Adem

Original comment by adem.kil...@oxand.com on 15 Apr 2013 at 12:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

I'd like to do the same table (see first comment attached file). Is there any 
way to do that for now ? I tried with @after-row and @before-row, without 
success

Thanks, Chris

Original comment by clockwor...@gmail.com on 15 Jan 2014 at 10:36

GoogleCodeExporter commented 8 years ago
No sorry, no time to do that for the moment.

Regards Angelo

Original comment by angelo.z...@gmail.com on 15 Jan 2014 at 11:27