Sinichan Jacob
January 18th, 2000, 07:06 AM
I would like to get the coding for opening a powerpoint file from visual basic program.
S.Jacob
S.Jacob
|
Click to See Complete Forum and Search --> : Opening Powerpoit file through VB Sinichan Jacob January 18th, 2000, 07:06 AM I would like to get the coding for opening a powerpoint file from visual basic program. S.Jacob Lothar Haensler January 18th, 2000, 07:09 AM use the ShellExecute API and pass the name of the PPT file as argument: option Explicit private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (byval hwnd as Long, byval lpOperation as string, byval lpFile as string, byval lpParameters as string, byval lpDirectory as string, byval nShowCmd as Long) as Long private Const SW_SHOWNORMAL = 1 private Sub Command2_Click() Call ShellExecute(me.hwnd, "open", "myfile.ppt", vbNullString, vbNullString, SW_SHOWNORMAL) End Sub ...this works, if PPT files are associated with powerpoint Chris Eastwood January 18th, 2000, 08:20 AM The article here http://support.microsoft.com/support/kb/articles/Q222/9/29.ASP?LNG=ENG&SA=MSDN demonstrates how to automate PP (2000) using VB. Chris Eastwood CodeGuru - the website for developers http://codeguru.developer.com/vb codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |