how to suppress confirmation dialog when opening a document

A

Andy Fish

Hi,

I'm operating word from a C# application using OLE interop. on one word
document, I get this message when trying to open it:

"Links to additional assistance and resources are available for this
document and for all documnts created from the templates available on
Microsoft Office Online. Do you want to automatically download and display
these links in the Template Help pane each time they are available?"

even though I have set DisplayAlerts = WdAlertLevel.wdAlertsNone, the
message still appears.

does anyone know how to open up a document like this without seeing this
message?

Note that if I open the document up interactively and dismiss the dialog, it
never reappers so I presume it must be storing the answer in the registry
somewhere. so I'm thinking that if I could find and fake this registry key I
could avoid this dialog ever appearing. anyone got any ideas what key it
uses?

TIA for any answers or other hints

Andy
 
A

Andy Fish

Thanks peter, setting those registry keys has fixed the problem.

Andy

Tellie said:
This should fix the problem:

try {
// Attempt to open the key
RegistryKey key =
Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Office\\11.0\\Common\\General",true);

// If the return value is null, the key doesn't exist
if (key != null) {

//disable the TemplatePane popup after first
install
key.SetValue("AutoTTPPrompted",
1,RegistryValueKind.DWord);

//Don't show the template pane
key.SetValue("NoAutoTTP", 1,
RegistryValueKind.DWord);
}
else {
log.Error("Couldn't Find the registry key :
HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\11.0\\Common\\General");
}
}
catch (Exception e) {
log.Error("[disableTemplatePane] " + e.Message);
}

/Peter



Andy Fish skrev:
Hi,

I'm operating word from a C# application using OLE interop. on one word
document, I get this message when trying to open it:

"Links to additional assistance and resources are available for this
document and for all documnts created from the templates available on
Microsoft Office Online. Do you want to automatically download and
display
these links in the Template Help pane each time they are available?"

even though I have set DisplayAlerts = WdAlertLevel.wdAlertsNone, the
message still appears.

does anyone know how to open up a document like this without seeing this
message?

Note that if I open the document up interactively and dismiss the dialog,
it
never reappers so I presume it must be storing the answer in the registry
somewhere. so I'm thinking that if I could find and fake this registry
key I
could avoid this dialog ever appearing. anyone got any ideas what key it
uses?

TIA for any answers or other hints

Andy
 

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