cancel
Showing results for 
Search instead for 
Did you mean: 

Pls Help...for loading a selected word file in SAP B1

Former Member
0 Kudos

Hi...

Can I get the Code for loadig a selected Widows Word Document

(file) in SAP B1

Accepted Solutions (0)

Answers (2)

Answers (2)

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

What do you mean by load word(.Doc) in SAP B1?

Do you mean lauch the word file with MS Word in your addon code?

Try this: Process.Start("c:
temp.doc")

Do you mean your addon file work as MS word to load the doc.

You may search "WordApp" or "CCWordApp" in google for further information. or VBA programming

Kind Regards

-Yatsea

Former Member
0 Kudos

If you want to open .doc file...


Private Sub LoadFile(ByVal sFile As String)
  Try
    Dim startInfo As New ProcessStartInfo(sFile)
    startInfo.WindowStyle = ProcessWindowStyle.Maximized
    Process.Start(startInfo)
  Catch ex As Exception
    ' log exception
  Finally
    System.GC.Collect() 'Release the handle to the table 
  End Try
End Sub

Regards

Sierdna S.