Opening a .pdf file with ShellExecute

 

Posted by BeckyR on May 20, 2002:

I am having problems opening a .pdf file with the ShellExecute command. The code is:

ShellExecute(Handle,'open',PChar'c:\data\gradesheets.pdf'),nil,nil,SW_SHOW);

but all that happens when this is executed is the Adobe Acrobat splash screen appears and then closes, and the file is never opened.

Any ideas on what I may be missing?

Thanks


Related Articles and Replies:


[ DelphiLand FAQ ] [ Delphi Tutorials ]