Removing disabled items in word 2007 (VBA)

K

kennymce

Hi,

Does anybody know of a way to clear the disabled items list in Word 2007
using automation (i'm automating using Visual Studio 2005 vb.Net)?

Thanks in advance.
 
C

Cindy M.

Hi =?Utf-8?B?a2VubnltY2U=?=,
Does anybody know of a way to clear the disabled items list in Word 2007
using automation (i'm automating using Visual Studio 2005 vb.Net)?
I'm pretty sure this isn't exposed in the object model. I believe the
information in this dialog box reflects settings in the Registry. So you'd
have to read/write to the Registry - question is, would you have the
necessary permissions to do that?

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 :)
 
K

kennymce

Hi Cindy,

Thanks for your reply. It's a shame that these aren't exposed in the object
model as that would simplify things.
Specifically, the disabled items I need to remove are templates that have
'misfired' somehow and are marked as disabled in the disabled items list. My
web application hangs when it tries to open these template files because the
web server encounters the dialog box informing the user that the item caused
a serious error last time it was used. In reality there's generally nothing
wrong with the templates and simply opening them on the server and confirming
to the dialog box that you want to load the document anyway clears the
problem. I just wondered if there was a programmatic way to achieve this.

If I have to remove them from the registry then I'm sure I could give the
appropriate permissions to the web application to do this.

Many thanks and best regards,
 

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