kjetilhp wrote:as for content controls, how do you then go about creating documents with this support (on a Mac) if Word doesn't support them? direct XML editing?
In some basic testing I did, Word 2011 for Mac seems to open and save docx containing content controls, but there seems to be no way to change them (either via the UI, or via VBA or AppleScript).
So unfortunately, your options are to edit the XML directly (using the Flat OPC representation would be easiest, assuming Word 2011 supports this - if it doesn't you could use docx4j to convert to/from it), or you could modify docx4all (which already has some support for content controls) - this latter I am keen to see done.
If you inject an updated custom xml part, I'm not sure whether Word 2011 will update the document surface to reflect the new values - I didn't try that yet.
kjetilhp wrote:Another note, I tried the MediaChartSample files with the CustomXmlBinding and it seems to have unexpected effects, as I read the sample code it should only change the name, but as you can see from the attached docs it fills in on other field an removes som content from other controls. (archive.1.zip)
I haven't looked at the attachments to compare, but someone previously noted that certain types of content controls (check boxes or lists iirc) were altered. The code would need to be changed to handle these cases.
I will have a look at your document to see where the nulls are coming from, but haven't done so yet.