Alot of Content Controls in a VSTO Word solution causes CPU max ou

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
 
C

Cindy M.

Hi =?Utf-8?B?amJzdHJpdmU=?=,
I am trying to develop a Word 2007 VSTO solution which contains about 1000
content controls.
There is a message thread in the VSTO forum that sounds very similar. Is that
you?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top