in my scenario i have to introduce an iterative table where i don't know the rows and i don't know also the exact number of columns that are part of the table
more specifically this is a scentific table where the columns will change based on the number of test that are executed.
I have 3 column that are statics in the table (the first 2 and the last 1 ), but in the middle of this columns i could have 1 to X colum that i cannot define at level of template
becouse i don't know it unitl I don't start to analize the data to generate the document
the point that i'm interestend is to understand if exist a strategy to put in place using content controls to defin same sort of template that at least could semplify the generation of the docx document
My idea is to make a sort of mixed scenario where i do the table with the static columns that i know in the template and i already link the repeat content control wiht the columns that i already know to it
and at run time during the processing of the template i discover the amount of column and then
- 1 - add in the table by code extra column,
- 2 - add in the table by code the content controls for the new column
- 3 - i push in the word document the custom xml wiht the new column
is there same other strategy that i could consider before to start to analize in detail this approach?