Hide Word 2007 UI, Ribbon and QAT in OLE container?
- From: matthew.bone@xxxxxxxxxxx
- Date: 28 Mar 2007 07:23:27 -0700
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..
.
- Prev by Date: RE: Additional functionality when displaying an email?
- Next by Date: RE: Additional functionality when displaying an email?
- Previous by thread: RE: Additional functionality when displaying an email?
- Next by thread: Word 2000 and automating the creation of charts
- Index(es):
Relevant Pages
|