Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8484301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:20:39+00:00 2026-06-10T20:20:39+00:00

I have a Word add-in that writes and reads Word documents in OpenXML format

  • 0

I have a Word add-in that writes and reads Word documents in OpenXML format – i.e. .docx.

But so that I can easily recognize “my” documents as against normal Word .docx files I have used another extension, call it .myx (or .mym for macro-enabled documents).

This all works wonderfully in Word 2007 and Word 2010, and I thought it would work in Word 2003 (with the Compatibility Pack installed).

But Word 2003, while it opens documents with .docx extension, will not open a .myx document, unless I rename it so that the extension is .docx.

When I try it with VBA, I have used a number of what look like obvious values for the WdOpenFormat enumeration, but nothing seems to help.

Do I really have to change my extension to .docx to get Word 2003 to open it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T20:20:41+00:00Added an answer on June 10, 2026 at 8:20 pm

    The answer is that the Compatibility Pack for Office 2007 is just another “text converter” to Word, and the .docx and .docm extensions appear to be what Word uses to invoke that text converter.

    However, this article this article, which deals with saving as .docx in the Word 2003 environment, gives a hint as to how to go about opening the documents. Using the macro defined in that link as a guide, here’s the essence (in C#) of how you go about finding the correct “OpenFormat” value for opening a document:

    using MSWord = Microsoft.Office.Interop.Word;
    ...
    private object GetOpenFormat(bool macroEnabled) {
      object result = MSWord.WdOpenFormat.wdOpenFormatAuto; /* default in case can't find the real value */
      string formatName = (macroEnabled? "Word 2007 Macro-enabled Document": "Word 2007 Document");
      foreach(MSWord.FileConverter converter in _msWordInstance.FileConverters) {
        if(string.Compare(converter.FormatName, formatName, true) == 0) {
          if(converter.CanOpen) {
            result = converter.OpenFormat;
            break;
          }
        }
      }
      return result;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a statement which reads if(Arrays.asList(results).contains(Word)); and I want to add at
I have code that writes text to a Word document (non-XML) and saves it
I have an ordered list in my Word document, and I want to add
I have one WORD variable in my program. WORD hour; But when I compare
I have a word document that was saved as xml. now I need to
I have Microsoft Word template that I automated filling it's fields from my application,
I have a VBA Word Macro that gets words from .txt list and color
I have about 100 Word documents which include transliteration of foreign names. The author
Context: Imagine that you have a standard CherryPy hello word app: def index(self): return
We have a program made in Borland Delphi that uses Word automation to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.