sitimoen / xdocreport

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

numbered lists and bullet list in ODT / DOCX template not supported #309

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use attached sample project
2. Run mvn clean install
3. (In eclipse) Run the main class XDOCDocumentCreator

Note that the odt template has a number of sections regarding creating a bullet 
list. The ODT template way would be to use the @text:list-item directive, but 
that does not seem to work. 

Also, this will not work in a DOCX template.

It would be great if for bullet lists/numbered list a similar mechanism in 
XDocReport would exit as table rows. E.g. @before-list-item and 
@after-list-item, and also a way to specify the tokens in the FieldsMetadata

What version of the product are you using? On what operating system?
XDocReports: 1.2
Eclipse Juno
Windows 7 Enterprise 64 bits

Original issue reported on code.google.com by Herbert....@gmail.com on 27 Sep 2013 at 7:08

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Herbert,

Thank a lot to have attached your Eclipse project.

>The ODT template way would be to use the @text:list-item directive, but that 
does not 
>seem to work. 
You are right, it was a bug, that I have fixed. I suggest you to try with the 
1.0.3-SNAPSHOT. As you use maven, please read 
https://code.google.com/p/xdocreport/wiki/Download#Maven_repository_artifacts

> Also, this will not work in a DOCX template.
For docx, the bullet list is a paragraph if I remember, so it was difficult to 
use this syntax.

>It would be great if for bullet lists/numbered list a similar mechanism in 
>XDocReport would exit as table rows. E.g. @before-list-item and 
@after-list-item
For ODT I think it should be easy. For docx I'm afraid that it was more complex 
because docx uses <w:p for bullet which can be a paragraph.

> and also a way to specify the tokens in the FieldsMetadata
Yes it should be cool, but with docx it will more complex to manage that.

Original comment by angelo.z...@gmail.com on 27 Sep 2013 at 8:32

GoogleCodeExporter commented 8 years ago
Hi,

Does this mean that we cannot generate a bullet list in a docx template with 
XDocReport?

Original comment by writetos...@gmail.com on 9 May 2014 at 5:02

GoogleCodeExporter commented 8 years ago
> Does this mean that we cannot generate a bullet list in a docx template with 
XDocReport?

You can generate bullet list by setting #foreach, and #end between a bullet 
list. But you will have problem I think with a blank line which will be 
generated too.

The best mean is to manage  #foreach, and #end with lazy mode like table by 
improving docx preprocessor. But I have no time to support it today.

Regards Angelo

Original comment by angelo.z...@gmail.com on 9 May 2014 at 8:35

GoogleCodeExporter commented 8 years ago
Hi Angelo,

Any chance of correcting this issue? I am getting lines in between the bullet 
list / numbered list. Would be very grateful if you could fix this for us.

Thanks
Sethu

Original comment by writetos...@gmail.com on 4 Dec 2014 at 9:26

GoogleCodeExporter commented 8 years ago
Sethu, I'm very busy and this issue seems hard to develop.

Original comment by angelo.z...@gmail.com on 4 Dec 2014 at 9:30

GoogleCodeExporter commented 8 years ago
For everyone, who has the issue with "lines" between the bullet items in word, 
simply mark the bullet in the template and from the paragraph menu, click on 
the small arrow and click the checkbox at "Don't add space between paragraphs 
of the same type". It might only be a workaround, but it helped for me.

HTH!

Original comment by elheppa on 15 Jan 2015 at 1:49