Dear all
I want to open a word document in visual basic 6.0 .
-------------------------------------------------------------------------------
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
Dim Sfile As String
Dim Path As String
Sfile = "FirstLetter.doc"
Path = "d:\payrollsystem\Letters"
ShellExecute hwnd, "Open", (Sfile), "", (Path), 1
----------------------------------------------------------------------
my problem is Shellexecute not working in the computer.
Any other methods please.
Regards
Giridaran