asked on
ASKER
Imports Word = Microsoft.Office.Interop.Word
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim wrdApp As New Word.Application
Dim wrdDoc As Word.Document = wrdApp.Documents.Open("C:\Test.doc")
wrdDoc.SaveAs("C:\Test.htm", Word.WdSaveFormat.wdFormatHTML)
wrdDoc.Close()
wrdApp.Quit()
End Sub
End Class
ASKER
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Interop.Word
Imports Microsoft.Office.Interop.Excel
Imports Microsoft.Office.Interop.Outlook
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Aword As New Word.Application
Dim Adoc As Word.Document = Aword.Documents.Open("C:\kanales.doc")
Adoc.SaveAs("C:\kanaleshtml", Word.WdSaveFormat.wdFormatHTML)
Adoc.Close()
Aword.Quit()
End Sub
End Class
ASKER
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
wrdDoc.SaveAs("C:\Path\Tes
Are you getting errors when you try the above code? What is the error?
Wayne