Help with Word 2007 in OLE container Compatibility Mode...

Help with Word 2007 in OLE container Compatibility Mode...

Post by Bryan Thor » Sat, 08 Sep 2007 03:05:12


I have some mail merge documents stored in a Data Aware OLEContainer,
that all worked well until Word 2007 changed the default save format
from .doc to xml. Anyway, I am wondering how I can change the
Document.SaveFormat back to 0 (doc) instead of 12 (xml) without having
to use the .SaveAs method (because it's in an OLE container)

Or if you know how to turn on Compatibility mode that might work as
well.

Any Help would really be appreciated!

Sincerely,

Bryan
 
 
 

1. Hide Word 2007 Ribbon and QAT in OLE Container?

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

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

3. Hide Word 2007 UI, Ribbon and QAT in OLE Container?

4. How to Get Word 2007 to 'kick-in' to Compatibility Mode Automatically for New Docs

5. Equations in Word 2007 compatibility mode

6. Where is the Word 2007 compatibility mode check box?

7. Word 2007 in compatibility Mode-Inserting pictures into a table ce

8. Turn off compatibility mode in template for Word 2007

9. Need Help - Unable to install compatibility pack to open word 2007 files in word 2003

10. is there an easy way to convert word 2007 compatibility mode doc.

11. Cannot edit in word 2007 compatibility mode

12. Word 2007 compatibility mode save - what features are lost?

13. Word 2007 Files Are Automatically Created in Compatibility Mode

14. Pre-Word 2007 documents "lengthened" in Compatibility Mode

15. How to Get Word 2007 to 'kick-in' to Compatibility Mode Automatically for New Docs