troubleshooting Question

ShellExecute: easy one....

Avatar of qas
qas asked on
Delphi
3 Comments1 Solution225 ViewsLast Modified:
Hi experts.

I've got an app which creates PDF files.  Once a file is created, I have a button with this single line in the onClick event:

shellexecute(Handle,'open','C:\windows\temp\soumission.pdf',nil,'nil',SW_NORMAL);

As you can see, I just want to get the PDF file displayed on screen using the Acrobat reader.  The thing is that it doesn't get displayed at all.  I get the ADOBE splash screen (which I see some loading being done) and then nothing.  If I double click on the PDF file or copy/paste the path in the RUN application (Start --> RUN) it works perfectly.

What am I doing wrong ??
ASKER CERTIFIED SOLUTION
geobul

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros