List of App Names associated with CreateObject function

Does anyone have a list of all the AppNames that can be passed as a parameter (e.g Word.Application) to the CreateObject function? I have an attachments field that can have various filetyes like Pdf, PPt along with Word and Excel. I want to know how to launch these applications thru lotusScript.

Thanks,

Subject: List of App Names associated with CreateObject function

Have a look at the OLE Reference pane (the one to the right of the objects pane). In that list are ALL registered OLE classes that can be used.

  • Johan

johan@kanngard.net

http://dev.kanngard.net

Subject: List of App Names associated with CreateObject function

You may have some amount of success with this:

Call Shell("cmd /c start " & path_and_file)

Alternatively you can use the ShellExecute Windows API call. Below is code you can put into a button that will do it. In either case you need to save the file off somewhere before you can open it.

Declarations:

Declare Function ShellExecute Lib “shell32.dll” Alias “ShellExecuteA” (Byval hwnd As Long, Byval lpszOp As String, Byval lpszFile As String, Byval lpszParams As String, Byval LpszDir As String, Byval FsShowCmd As Long) As Long

Const SW_SHOW = 1

Sub Click(Source As Button)

Call ShellExecute(0, “Open”, path_and_file, “”, “”, SW_SHOW)

End Sub

HTH,

Charles