Reviewing toolbar opens when a word doc is opened in IE

  • Thread starter Thread starter slc
  • Start date Start date
S

slc

Help,

When I open a office XP word doc that is on my web
site from the web the reviewing toolbar
shows up in IE.
The Reviewing toolbar does not show up if
I save the doc and then open it in word, it
only shows up when a word doc is opened within IE.
How do I stop the reviewing toolbar from
showing up in IE when someone opens
a word doc from my web site in IE?


Thanks
Kevin
 
Hi Slc,

I presume you mean the Discussion bar? You can programmatically show or hide
any toolbar or explorer bar with the ShowBrowserBar method of the WebBrowser
Object.

Here is a snippet for displaying the links toolbar in a button script.

doc.body.insertAdjacentHTML("beforeEnd", "<object id=\"WebBrowser\" width=0
height=0 classid=\"CLSID:13709620-C279-11CE-A49E-444553540000\"></object>");
doc.all.WebBrowser.ShowBrowserBar("{0E5CBF21-D15F-11D0-8301-00AA005B4383}",
true);
doc.all.WebBrowser.outerHTML="";

You will have to scan your registry HKCR\Clsid node for the CLSID of the
discussion bar and replace it in above.

Also XP sp2 versions of IE have a setting to allow scripting of the Web
Browser so on those clients the above will not work.

A better solution may be to publish your word documents as html web
documents instead.

Regards.
 
Back
Top