Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeat multi row #85

Open
hong4rc opened this issue Oct 12, 2020 · 4 comments
Open

Repeat multi row #85

hong4rc opened this issue Oct 12, 2020 · 4 comments

Comments

@hong4rc
Copy link

hong4rc commented Oct 12, 2020

Can I create a table repeate multi-row like this:

image

@DDtKey
Copy link
Contributor

DDtKey commented Nov 26, 2020

Can I create a table repeate multi-row like this:

If I understand you correctly, you can try using repeatDocPart(List<Object> objects) function, like repeatTableRow, but highlighting the desired area (it works for me in similar cases).

@Rafek280
Copy link

Rafek280 commented Jun 29, 2021

I have the same issue. I created a class Room with (String name, Image bild ,List services) . I can use the function repeatTableRow to iterate a List of rooms. It will be show the name, the image but no the atributes of each service on the List.

I tried with

docxstamper

this is the result:

result

and also with:

docxstamper2

this is the result:

result2

@dallanmc
Copy link

I have the same issue. I created a class Room with (String name, Image bild ,List services) . I can use the function repeatTableRow to iterate a List of rooms. It will be show the name, the image but no the atributes of each service on the List.

I tried with

docxstamper

this is the result:

result

and also with:

docxstamper2

this is the result:

result2

What does the structure of the context object look like for this? Is "services" an attribute of the "rooms" object, and if so what is the Type?

@caring-coder
Copy link

This subject has been treated in our fork https://github.com/verronpro/docx-stamper with the implementation of nested comments, and has been tested with repeatDocPart comment, and should works as well with repeatParagraphs and repeatRows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants