I have a VB.Net application wherein I process a word document. The problem I am facing is as follows
I have a word document, I need to read the content of the word document and do some processing with the document. Then I need to create a new document and write the contents.
I tried using a Stream objects found System.IO namespace but the format of the file i.e the characters in bold, the bullets, etc were not written to the new file.
Is there something wrong in the way I am using the Stream object or should I use some other classes from System.IO
The code that I have written in VB.Net is as follows:
dim strText as String
strText = File.ReadAllText("Document.doc")
' Here I do the processing with the string
File.CreateText("Document1.doc")
File.WriteAllText("Document1.doc", strText)
Please Help
Vineed