May 4, 2012 at 8:16 PM
Edited May 4, 2012 at 8:20 PM
Sry should have followed up with a repro case, will try to get the time for it on monday.
This is basically what I do: (pseudo code)
DocX base = Load base document
for each item in items
DocX i = Load item document template
i.SearchAndReplace template strings from item data
This works fine when the number of items is small, once I get to around 300+ items, things go bad.
In reality there are a few (less than ten) template documents used (selected depending on item data).
The template document contains a single table with text and I suspect that it's the table that is causing problems.
I further suspect that the problem is that I insert "the same" document several times, maybe there are some GUID issues?
I wish I had more time to investigate this, but this is for a very low priority help feature that my bosses can't see the value of (until it's completed of course :)