Open word in panel vb.net

  • Thread starter Thread starter Nattiko Mattiphong
  • Start date Start date
N

Nattiko Mattiphong

Guest
please, i only want to open any office app into panel using vb.net

please help

thnks


my code not work

Dim pathword As String = "C:\Users\Sixsigma\Desktop\Shareproject_code\Pathfile\test.docx"
oWord = New Word.Application
oWord.Application.DisplayAlerts = False
oWord = CreateObject("Word.Application")
' oWord.WindowState = Word.WdWindowState.wdWindowStateMaximize
oDoc = oWord.Documents.Open(pathword)
SetParent(oWord.hwnd, Panel1.Handle)
SendMessage(oWord.Hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0)
oWord.Visible = True

Continue reading...
 
Back
Top