J
jbstrive
I am trying to develop a Word 2007 VSTO solution which contains about 1000
content controls. This sounds like a lot but it is a fairly simple solution
with just a lot of repeating data.
After deploying the solution I open the document and click inside one of the
content controls which causes Word to max out the CPU while it does
"something". I wish I knew what the something was so I could fix it. (My
guess is that it is binding all the controls but it should not take that long
on a superfast computer.) Note that after first click, the document seems to
work fine -- navigating to other controls etc. and no CPU problem.
This problem is reproducible by simply creating a new VSTO Word 2007
document solution and adding a Plain Text content control and copy/pasting it
down in the document 1000 times. Then deploy it. You don't even need to do
anything in the customization (add events etc.), just deploy as-is. Below
are the results I have seen which shows that the problem gets exponentially
worse:
600 Controls (25 pages)
Response: 11 seconds
900 Controls (38 pages)
Response: 35 seconds
1200 Controls (50 pages)
Response: 1 min 20 seconds
I would really like to be able to develop this as a Word solution so if
somebody has any info on this at all it would be much appreciated.
(Please don't respond and tell me to do an InfoPath solution.)
Thanks alot,
jbstrive
content controls. This sounds like a lot but it is a fairly simple solution
with just a lot of repeating data.
After deploying the solution I open the document and click inside one of the
content controls which causes Word to max out the CPU while it does
"something". I wish I knew what the something was so I could fix it. (My
guess is that it is binding all the controls but it should not take that long
on a superfast computer.) Note that after first click, the document seems to
work fine -- navigating to other controls etc. and no CPU problem.
This problem is reproducible by simply creating a new VSTO Word 2007
document solution and adding a Plain Text content control and copy/pasting it
down in the document 1000 times. Then deploy it. You don't even need to do
anything in the customization (add events etc.), just deploy as-is. Below
are the results I have seen which shows that the problem gets exponentially
worse:
600 Controls (25 pages)
Response: 11 seconds
900 Controls (38 pages)
Response: 35 seconds
1200 Controls (50 pages)
Response: 1 min 20 seconds
I would really like to be able to develop this as a Word solution so if
somebody has any info on this at all it would be much appreciated.
(Please don't respond and tell me to do an InfoPath solution.)
Thanks alot,
jbstrive