Hide Word 2007 UI, Ribbon and QAT in OLE container?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have a similar problem as described in other posts to this group.
However I have not come across any answers that really provide a
solution to my problem.

Using Delphi 7 I have a Form with an OLE container in which I create a
Word document:

oleContainer.CreateObject('word.document', false);

In previous versions of Word it has been a simple task to show a plain
Word document (without any UI elements) in an OLE container. For
instance the following code gracefully hides all the classic Word
97-2003 tool bars:

for i := 1 to FWordDoc.CommandBars.Count do begin
CmdbName := FWordDoc.CommandBars[i].Name;
l := Length(CmdbName);
if (l > 0) and FWordDoc.CommandBars[CmdbName].Visible then
FWordDoc.CommandBars[CmdbName].Visible := false;
end;

Now, the question is simple, but the answer remains illusive,

Is there a way in which I can entirely hide the Word 2007 Ribbon and
Quick Access Toolbar from my OLE container?

I have rigorously examined the Word 2007 DOM without success. The
closest I find is the Window.ToggleRibbon command which is way out
from my requirements. I can toggle it's view status, but I can't ask
it beforehand which status it is in. Huh?!...
Another thing I tried was using different object verb commands to
activate my document, also without the desired result.

My objective remains. I want to make the entire UI, Ribbon and QAT
disappear, leaving me with a plain Word document in my OLE container.

Any help and suggestions from the brainy folks out there is highly
appreciated..

.



Relevant Pages

  • Hide Word 2007 Ribbon and QAT in OLE Container?
    ... Word document in an OLE container. ... Is it possible to entirely hide the Word 2007 Ribbon and Quick Access ... Another thing I tried was using different object verb commands to ...
    (microsoft.public.win32.programmer.ole)
  • Re: Opening a word document using MS Webbrowser Control
    ... > I would like to be able to create a word document running inside my ... > application and started down the path of an ole container which is no ... I found out that you can open a word document in a MS ... Use the WebBrowser Control to Open an Office Document in Visual Basic .NET ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XML for Comment Button
    ... A lookup to another Word document or an Excel table or a text file or registry entries or ... ... I don't know off the top of my head how to fill in a dropdown in the ribbon but it must be possible - or your ribbon button could bring up a userform from which a choice could be made or maintenance of the cross reference list could be done or ... ... I'm making a custom tab on the Ribbon/Fluent UI in Word 2007. ... have like a Word document or Excel file that has all the names ...
    (microsoft.public.word.vba.general)
  • Re: Word 07 Insert Object and Multiple Pages
    ... Click on the arrow next to the Object item in the Text section of the Insert ... Ribbon and you will see a Text from File item which is the one to use. ... Doug Robbins - Word MVP ... So when I do this to insert another Word document, ...
    (microsoft.public.word.docmanagement)
  • Missing "add-ins" tab in word 2007
    ... I needed to use Endnote in a word document and suddenly realized that ... I cannot see the "add-ins" tab on the ribbon in Microsoft word 2007. ...
    (microsoft.public.word.docmanagement)