20
Views
2
Comments
[MSWordUtils] Duplicating content in a document
Question
mswordutils
Web icon
Forge asset by Stuart Harris

Is it possible to use this component to duplicate specific content in a document? 

Specifically, we have a template document with a rather complicated pre-formatted table. We'd like to duplicate that table a certain number of times depending on what the user supplies. (I don't think it would be possible to recreate the table with the correct formatting using the currently available functions).

2023-12-11 08-54-13
Neha Agrawal
Champion

Hi Zachary,

If the user enters the number of times you want to duplicate the data content, then before downloading the content you can append your original content with its copy for that many times and then pass that content to the download widget.

Hope this is helpful. Thanks!

UserImage.jpg
Zachary

I'm not sure I understand, can you show me how to append it like that? I'm not seeing a function in the component that does that.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.