View Single Post
 
Old 08-04-2014, 01:47 AM
MGerhard MGerhard is offline Windows Vista Office 2010 32bit
Novice
 
Join Date: Jul 2014
Posts: 2
MGerhard is on a distinguished road
Default

Hi macropod,

Thanks for your answer.
But I am legally not able to post those documents
But I found a workaraound that fulfills 90% of my problems:
As far as I know now the basic idea behind the grouping of content controls is to ensure the content controls shall not be deleted or changed.
My major problem was that while the content controls are protected through those groups the fields.update() could not update the enclosed controls.
My workaround:
I am searching for all content control groups and remove them. Then I am updating the fields and after that I create a new group around the whole content. This way the content controls are still locked for the users an the data fields are up to date.
The last 10% would be, if I were able to recreate exact the same groups as there were before. I tried that with writing the ranges of the groups into a collection. But when I was trying to set those ranges to a new created group I alway got the error message "Invalid range"

But for my client the 90%-Solution works for now. But if you have an idea about the creating of groups an re-setting the range values, you will be very welcome

Best regards,
Markus
Reply With Quote