.doc to .txt conversion. Need a different way of doing it without

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

A 4 line solution I found using VB.NET BUT needing Word application as a part
of the codes is:

'reportPath and writePath are strings to the name of origin files and
destination files respectively
Imports Microsoft.Office.Interop

Dim WordApp As Word.Application = New Word.Application
Dim WordDoc As Word.Document =
WordApp.Documents.Open(fileName:=reportPath, readonly:=True)
WordDoc.SaveAs(writePath, Word.WdSaveFormat.wdFormatDOSText)
WordApp.Quit()

Problem is, I wanted to try to do the saveas/conversion without having Word
installed on computer.
Anyway around this? like using wordpad to do the same thing? but as far as I
know .Net doesn't have support such as that
 
Back
Top