Re: Open File




"george" <g@xxxxx> wrote in message
news:%23pfGq4dzGHA.2516@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have a textbox in an application that holds a file for specified record.
This file type could be .pdf, .doc, .dwg ... Is there generic code to
open
the file based on the registered program for the file type?

Thanks


Yes.

You can simply use Shell(), or you can use ShellExecuteEx(), which mimics
launching an app from Explorer and provides opportunities for more
attributes.

'To open Word with file - Shell( "MyWord.doc")


.


Loading