Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,i want to convert word to xml, but didnot find any namespaces to convert it,
and what is the namespace to this line.
Word.Application WordApp = new Word.ApplicationClass();
Posted

1 solution

I believe U don't like google....

use the following link

http://lmgtfy.com/?q=Word.ApplicationClass[^]

and namespace doesn't provide you the functionality to do anything...its nothing but logical grouping of classes, interfaces, Abstract Classes, Structs etc..
 
Share this answer
 
Comments
parashu durgam 27-Mar-12 2:54am    
how to Save the word document as Xml programmatically
i found the code Shown Below
Word.Application WordApp = new Word.ApplicationClass();
object NullObject = System.Reflection.Missing.Value;
object FalseValue = false;object TrueValue = true;
//Document in Word format
object Format = (object)Word.WdSaveFormat.wdFormatXML;
Word.Document Document;Document = WordApp.Documents.Open(ref DocumentPath, refNullObject, ref FalseValue, ref NullObject, ref NullObject, ref NullObject,ref TrueValue, refNullObject, ref NullObject,ref NullObject, ref NullObject, ref FalseValue,ref NullObject, refNullObject, ref NullObject, ref NullObject); //Accept all the revisions done on the document first.
Document.AcceptAllRevisions();
//Save document in WordMl Format.
Document.SaveAs(ref XmlPath, ref Format, ref NullObject, ref NullObject, refNullObject,ref NullObject, ref FalseValue, ref NullObject, ref NullObject, ref NullObject, refNullObject, ref NullObject, ref NullObject, ref NullObject, ref NullObject, ref NullObject);
//Close Word DocumentDocument.Close(ref TrueValue , ref NullObject, ref NullObject);}

plz help me in my requirement
senguptaamlan 27-Mar-12 2:58am    
have you executed the code??? If yes then please explain where you are stuck?
parashu durgam 27-Mar-12 3:30am    
iam getting error at word ,documentpath and xmlpath, even i added microsoft word 10.0 object library and can you send me an example on "parsing word doc to xml file"
senguptaamlan 27-Mar-12 4:52am    
please, specify the exact lines...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900