yogi7
June 28th, 2001, 05:18 PM
I'm opening Microsoft word from VB 6 application.
i use command
app_path is winword.exe path from registry and trial.doc is in the same directory.
taskId = Shell(app_path & "trial.doc", 1)
error message says "File could not be found.
i use similar code for Acrobat reader and that works fine.
I have one more question,
When another application is opened from VB. How to make that application active window. In my case, sometime it is active and sometime it goes in background. I tried AppActivate, but it does not work.
Any help will be highly appreciated.
i use command
app_path is winword.exe path from registry and trial.doc is in the same directory.
taskId = Shell(app_path & "trial.doc", 1)
error message says "File could not be found.
i use similar code for Acrobat reader and that works fine.
I have one more question,
When another application is opened from VB. How to make that application active window. In my case, sometime it is active and sometime it goes in background. I tried AppActivate, but it does not work.
Any help will be highly appreciated.