imports microsoft.office.interop.word
*
Imports Microsoft.Office.Interop
Public Class Form1

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim objWord As New Word.Application
objWord.Visible = True
objWord.Documents.Open("c:\test.doc", , , True)
End Sub
End Class

 

 

ms_word14.gif

 

참조 추가해줍니다

 

 

 

이 게시물을

댓글'3'

이 댓글을

엑셀 오픈

 

Imports Microsoft.Office.Interop
Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim objWord As New Excel.Application
        objWord.Visible = True
        objWord.Workbooks.Open("c:\test.xls", , , True)
    End Sub
End Class

이 댓글을

이 댓글을

공유하기

SEARCH

MENU NAVIGATION