none
Creating a DOCX in Word 2010 that Word 2007 can read RRS feed

  • Question

  • Hi all;

    When we create a chart in Word 2010 (not with our AddIn, just using plain old Word), then Word 2007 cannot read the DOCX file. I think the problem it is having is:

    <w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" mc:Ignorable="w14 wp14">

    the http://schemas.microsoft.com/office/word/2010/... parts. Is this supposed to be happening? And does this mean a 2010 DOCX file with a chart in it cannot be read by 2007?

    thanks - dave


    Very funny video - What's your Metaphor?
    Wednesday, May 11, 2011 3:30 PM

Answers

  • Without further detailed tests, I would guess that Word 2010 either inserts the word/2010 namespaces related to shapes routinely, or perhaps when there is graphic content in the document.

    However, unless the namespace is actually used in document.xml, there should not be a problem with Office 2007 opening the document.

    I just created a Word 2010 document containing a chart and used File Info->Check for Issues->Check Compatibility to see whether there were any issues, and the only thing reported was to do with charts where the data extended over more than 256 columns (or some such). The document opened fine in Word 2007. It had the namespace declarations that you mentioned, but did not use them in document.xml. The actually chart XML in chart.xml did not declare any "2010" namespaces. Perhaps if you included such a chart, one or more of these namespaces would be used - I haven't checked.

    AIUI the idea of the mc:Ignorable="w14 wp14" is that any XML that uses /those/ namespaces should not cause parser errors. Whether w14 and wp14 are included in that list "by design" and the others are excluded "by design" or shoud perhaps be in there, I cannot say.


    Peter Jamieson
    • Marked as answer by DavidThi808 Friday, May 13, 2011 10:20 PM
    Wednesday, May 11, 2011 4:11 PM

All replies

  • Without further detailed tests, I would guess that Word 2010 either inserts the word/2010 namespaces related to shapes routinely, or perhaps when there is graphic content in the document.

    However, unless the namespace is actually used in document.xml, there should not be a problem with Office 2007 opening the document.

    I just created a Word 2010 document containing a chart and used File Info->Check for Issues->Check Compatibility to see whether there were any issues, and the only thing reported was to do with charts where the data extended over more than 256 columns (or some such). The document opened fine in Word 2007. It had the namespace declarations that you mentioned, but did not use them in document.xml. The actually chart XML in chart.xml did not declare any "2010" namespaces. Perhaps if you included such a chart, one or more of these namespaces would be used - I haven't checked.

    AIUI the idea of the mc:Ignorable="w14 wp14" is that any XML that uses /those/ namespaces should not cause parser errors. Whether w14 and wp14 are included in that list "by design" and the others are excluded "by design" or shoud perhaps be in there, I cannot say.


    Peter Jamieson
    • Marked as answer by DavidThi808 Friday, May 13, 2011 10:20 PM
    Wednesday, May 11, 2011 4:11 PM
  • I would expect the chart to be in two versions wrapped in an <mc:AlternateContent> construct. 2007 should be able to open it, and would show the 'fallback' and, if the chart were edited it would be saved in 2007-only format, but it would be maintained in both formats if not.
     
    What error message are you seeing?
     

    Enjoy,
    Tony
    www.WordArticles.com
    Wednesday, May 11, 2011 5:21 PM
  • Hi;

    It doesn't wrap it, but as Peter says, if the namespaces aren't used then it doesn't matter. We've tried to re-create this but we can't and our customer can't either. So we're thinking it's one of those only on Tuesdays if dancing the samba while creating a chart using just your left hand does it occur bugs.

    If we can come up with a way to consistently create it, I'll re-open this.

    thanks - dave


    The future of B.I. - Raw & Uncut
    Friday, May 13, 2011 10:22 PM