saveas word 2003 directly as xml

asish

Member
Joined
Jan 17, 2008
Messages
20
Programming Experience
Beginner
hi, i'm not sure if its z right place to ask 4 here:

so far i hve found these few things:
Private wordApp As New Word.Application
wordApp.Documents.Open(CType(Me.txtFilename.Text, Object))

this launches the word 2003 application and opens a file, given by me.txtFilename...but want i want is to save as the document directly as xml without having it to open the word can this be done? if possible?

a reply will be greatly appreciated thank u
 
doc.Application.Documents.Open(CType(Me.txtFilename.Text, Object))
doc.Paragraphs.First.PageBreakBefore = True
doc.TablesOfContents.Add(doc.Paragraphs.First.Range)
wordApp.Visible = True
here i open the file and generate a toc but i need to save the file which is of doc extension to xml.....is it possible.....

something like:

doc.SaveAs("d:\document\type.doc", ".xml")...but i'm getting type mismatch error.....

can anybody help!!!!
 
Back
Top