How to remove "[Compatibility Mode]" label from active window capt

M

Mario Montes

Hi,
I have a C# app that interops with Word 2007 and Word 2003. When I open a
DOC file in Word 2007, it includes [Compatibility Mode] in the title.

Can this be removed? If so, how?

Thanks
 
J

Jay Freedman

Mario said:
Hi,
I have a C# app that interops with Word 2007 and Word 2003. When I
open a DOC file in Word 2007, it includes [Compatibility Mode] in the
title.

Can this be removed? If so, how?

Thanks

I don't think it can be removed except by running the Convert command to
change the document to Word 2007 format, so the document is no longer in
compatibility mode.

I thought it might be possible to simply replace the ActiveWindow.Caption
text,

ActiveWindow.Caption = Replace(ActiveWindow.Caption, " [Compatibility
Mode]", "")

but Word simply re-added the [Compatibility Mode] tag to the end of the
caption. This failed even more interestingly (!) when the original caption
included both (Read-Only) and [Compatibility Mode], because both tags were
re-added and that resulted in two (Read-Only) tags. Running the line of code
multiple times kept adding more (Read-Only) tags.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top