예제 #1
0
        public static DocXmlDocument GetXmlDocument(string strXmlFilename)
        {
            Word07MLDocument doc = new Word07MLDocument();

            doc.Load(strXmlFilename);
            doc.GetNameSpaceURIs(doc.DocumentElement);
            doc.InitXPathExpressions();

            // get the full list of potential font and style names (these aren't what we'll present
            //  to the user, because we'll only show those that have some text, but just to get a
            //  full list that we won't have to a) requery or b) look beyond)
            doc.GetFullNameLists();

            return(doc);
        }
예제 #2
0
		public static DocXmlDocument GetXmlDocument(string strXmlFilename)
		{
			Word07MLDocument doc = new Word07MLDocument();
			doc.Load(strXmlFilename);
			doc.GetNameSpaceURIs(doc.DocumentElement);
			doc.InitXPathExpressions();

			// get the full list of potential font and style names (these aren't what we'll present
			//  to the user, because we'll only show those that have some text, but just to get a
			//  full list that we won't have to a) requery or b) look beyond)
			doc.GetFullNameLists();

			return doc;
		}