I would like to ask for your advice or for any information that could help me solve a docx merging issue.
I am constructing a report from multiple parts. I have a static part (16 pages), I have a dynamic part (one template page with text content controls, image content control, that I have to generate 30 times or so, with different data) and finally another static part. I am merging these together using altChunk.
The document works fine but I have a problem regarding it's size. The final report has almost 19 MB, in comparison to 8 MB which is the size of the original document (from which I cut my report parts).
I think the problem is caused by AltChunk which simply embeds the template page withing the next template page, within the merged first two template pages, and so on.
How can I avoid this? Or what should I use instead of AltChunk?
I don't know much about AltChunk, but you could take a look at DocumentBuilder in the PowerTools for Open XML. Take a look at the Core examples. Eric White also has some blog posts about this, like this intro.