Save Word Document to Word XML Using VB

L

Lawrence007

Hi,

I am using the following code to open my word document:

Dim oWord As Microsoft.Office.Interop.Word.Application = New
Microsoft.Office.Interop.Word.Application
Dim missing As Object = System.Reflection.Missing.Value
Dim XMLFiles As String = "My File location\"
Dim XSLTPath As String = "My XSLT File.xslt"
oWord.Documents.Open(XMLFiles & "ForChange.xml", missing, missing,
missing, missing, missing, missing, _
missing, missing, missing, missing, missing, missing, missing,
missing, _
XSLTPath)

I want to save this file as Word XML using Visual Basic. How can I do this?
I can do it fine through MS word, but saving it with Visual basic it saves it
as a plain XML. I would really appreciate the help.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top