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
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;
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