Re: Open any file
- From: "Rick Bean" <rgbean@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 13:30:00 -0400
Scott,
Assuming you have Acrobat Reader or another PDF viewer installed and associated with PDF files, you can use:
declare INTEGER ShellExecute in shell32 INTEGER handle, STRING @ oper, ;
STRING @ ifile, STRING @ iparam, STRING @ ipath, INTEGER showcmd
lcFileName = "c:\temp\document0.pdf"
=shellexecute(0,"open",lcFileName,"","c:\",1)
Rick
"Scott" <Scott@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:286EADF5-0862-4555-88D3-D8BA250FB623@xxxxxxxxxxxxxxxx
Specifically, I want to open a PDF file in Adobe through my application. Now,
normally, because the computer has Adobe Professional on it, I call the Adobe
COM object and open the file that way.
Is there a way to open a file...any file...by calling Windows and just
providing the filename? Windows would then open the file with the appropriate
program.
This would save me always explicitly always using an application's COM
object to open a file.
.
- Prev by Date: RE: How to conditionally open a remote view which is included in the D
- Next by Date: Re: How to conditionally open a remote view which is included in the D
- Previous by thread: RE: How to conditionally open a remote view which is included in the D
- Next by thread: Re: Include file in reserved8 of scx
- Index(es):
Relevant Pages
|