View Full Version : Help for Word's CustomXMLPart
gmaxey
12-01-2012, 11:03 AM
Is Microsoft's Help for the CustomXMLPart and its events, methods and properties very helpful?
I'm anwering my own question here. Not only know no, but :banghead: no!!
Far from perfect, but for others looking for help on this topic the following may spare you the hair pulling that I've experienced:
http://gregmaxey.mvps.org/word_tip_pages/customXML_helpful_help.html
Paul_Hossler
12-02-2012, 05:59 AM
Greg -- I do like your teaching/explaining style
You might add just what is the CustomeXMLPart and why and how someone might want to use it.
Paul
gmaxey
12-02-2012, 08:59 AM
Paul, Thanks. You're right. I've got links to the page where a CustomXMLPart is used to map a single CC, but I've been chewing on what might be a good basic example to include in this tips page.
Any suggestions?
gmaxey
12-04-2012, 09:57 AM
Greg -- I do like your teaching/explaining style
You might add just what is the CustomeXMLPart and why and how someone might want to use it.
Paul
Paul,
I thought it might be neat to try to store pictures in a customXMLPart and then use a CC dropdown to select a picture and a CC picture to display the picture selected. Could make for a very large file size, but the collection of possible pictures becomes a part of the document
I've posted an example file here: https://dl.dropbox.com/u/64545773/Select%20picture.docm
Paul_Hossler
12-09-2012, 09:05 AM
One thing that comes up often (not a lot, but frequently enougth to have me scratching my head), and I don't know if it's anything you're looking at considering. I'm not even sure it's the purpose of the CustomXMLPart anyway since you're way over my Word head with this one.
Excel example, but should be the same for all Office apps
I'd like to be able to 'store' things' in a xlsm or docm container zip, and be able to save the 'stored' file
I tried just manipulating the zip file, but got the 'Found unreadable content ..' message afte I renamed it back to .XLSM
A typical application (for me) at work would be to include a .DOTX in the XLSM, and save it to the user's templates folder, and them launch Word to populate the document's bookmarks with Excel data
Now I have to make sure that anyone using the XLSM has the latest DOTX and in the right folder
If there were a way to use CustomXML parts to make it easier, it might be generically useful to others
Just a thought
Paul
gmaxey
12-10-2012, 05:25 AM
Hi Paul,
Anything deeper than a parking lot puddle is over my head as well ;-)
I could be wrong, but I don't think thte CXP can be used that way. You might be able to use WinWAR and create a self extracting file that will contain your xlsm file and put the word.dotm in the users templates folder:
http://www.technospot.net/blogs/how-to-create-professional-installer-using-winrar/
I have discovered that if you have Word 2013, then you can store building blocks as mapped rich text content, and thereby making them portable with the document.
Paul_Hossler
12-10-2012, 06:27 AM
Your picture example made me think of it
https://dl.dropbox.com/u/64545773/Select%20picture.docm
I've tried to use WinRAR and add another file, but IF it is possible I didn't do it right
Paul
gmaxey
12-10-2012, 08:25 PM
Paul and other interested persons:
I've published a couple of techniques form employing CustomXMLParts here:
http://gregmaxey.mvps.org/word_tip_pages/tinkering_with_CustomXMLParts.html
I'll be deleting the dropbox public files.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.