>I have a data field in my table that is the path and name of a document. I would like to pop open a Word or WordPerfect viewer (depends) with the click of a command button. My data field looks like "H:\dirX\document1.wpd or H:\dirx\document2.doc". Would it be easier to use a viewer from with VFP6 or the app itself?
>
>Can someone point me in the right direction? Thanks in advance!
Easiest way to do this is just open the document using ShellExecute. If you have VFP 6, you can use the Shellexecute class in the FFC. If not, there are a couple of classes here available for download.
Shellexecute is a Windows API call that opens a file with it's associated application.
Erik Moore
Clientelligence