G
Greg Maxey
Bill Coan passed me a link today containing information about change by MS
that could affect how Content Controls interact with the XML datastore:
The gist of the link is this:
"Microsoft has released a supplement for Office 2007 (October 2009). The
following patch is required for the United States. The patch will work with
all Office 2007 languages.
2007 Microsoft Office Supplemental Release (October 2009) .img 12.9 MB
After this patch is installed, Word will no longer read the Custom XML
elements contained within DOCX, DOCM, or XML files. These files will
continue to open, but any Custom XML elements will be removed. The ability
to handle custom XML markup is typically used in association with automated
server based processing of Word documents. Custom XML is not typically used
by most end users of Word."
Can this really be true!!?? Are all mapped CCs in existing docx and docm
files now busted? Can one no longer map CCs to a CustomXMLPart? Why would
MS do such a thing?
My PC is setup to automatically download and install MS updates, but if the
disaster described above is really true then apparently I don't have this
release installed.
I can still open a new document and run this code to create a CustomXMLPart
Sub CreateTestXMLPart()
Dim pXML As String
ClearExcessXMLParts
pXML = "<Test><Item>House</Item></Test>"
ActiveDocument.CustomXMLParts.Add pXML
End Sub
Sub ClearExcessXMLParts()
Dim i As Long
For i = 4 To ActiveDocument.CustomXMLParts.Count
ActiveDocument.CustomXMLParts(4).Delete
Next i
End Sub
I can then save, close and reopen the file and access the CustomXMLPart
using this code:
Sub Testing()
Dim oNode As CustomXMLNode
Set oNode = ActiveDocument.CustomXMLParts(4).SelectSingleNode("Test/Item")
MsgBox oNode.Text
End Sub
Looking for someone that is certain that they have installed the
supplemental release and willing to try out the code above to determine the
results and hopefully (very hopefully) confirm that CustomXMLParts can still
be accessed. Thanks.
--
Greg Maxey
See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.
Arrogance is a weed that grows mostly on a dunghill (Arabic proverb)
that could affect how Content Controls interact with the XML datastore:
The gist of the link is this:
"Microsoft has released a supplement for Office 2007 (October 2009). The
following patch is required for the United States. The patch will work with
all Office 2007 languages.
2007 Microsoft Office Supplemental Release (October 2009) .img 12.9 MB
After this patch is installed, Word will no longer read the Custom XML
elements contained within DOCX, DOCM, or XML files. These files will
continue to open, but any Custom XML elements will be removed. The ability
to handle custom XML markup is typically used in association with automated
server based processing of Word documents. Custom XML is not typically used
by most end users of Word."
Can this really be true!!?? Are all mapped CCs in existing docx and docm
files now busted? Can one no longer map CCs to a CustomXMLPart? Why would
MS do such a thing?
My PC is setup to automatically download and install MS updates, but if the
disaster described above is really true then apparently I don't have this
release installed.
I can still open a new document and run this code to create a CustomXMLPart
Sub CreateTestXMLPart()
Dim pXML As String
ClearExcessXMLParts
pXML = "<Test><Item>House</Item></Test>"
ActiveDocument.CustomXMLParts.Add pXML
End Sub
Sub ClearExcessXMLParts()
Dim i As Long
For i = 4 To ActiveDocument.CustomXMLParts.Count
ActiveDocument.CustomXMLParts(4).Delete
Next i
End Sub
I can then save, close and reopen the file and access the CustomXMLPart
using this code:
Sub Testing()
Dim oNode As CustomXMLNode
Set oNode = ActiveDocument.CustomXMLParts(4).SelectSingleNode("Test/Item")
MsgBox oNode.Text
End Sub
Looking for someone that is certain that they have installed the
supplemental release and willing to try out the code above to determine the
results and hopefully (very hopefully) confirm that CustomXMLParts can still
be accessed. Thanks.
--
Greg Maxey
See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.
Arrogance is a weed that grows mostly on a dunghill (Arabic proverb)