Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot View PDF with ShellExecute
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01554652
Message ID:
01554678
Views:
43
Hi Boris. Thanks for replying.
I will have to recompile, deploy on site, and then I can figure this out
What should it be for a successful display ?
Only want to Wait Window if its not successful
Regards,
Gerard


>>Hi.
>>Have the code below to view a PDF file, but file is not displaying on a new PC added to a network.
>>All others can see the PDF file
>>Also, if user goes in in Windows Explorer, PDF file comes up if user clicks on it, so Adobe seems to be installed ok
>>Any ideas ?
>>Tia
>>Gerard
>>
>>
>>&& -----------------------------------------------------------------
>>&& Show the PDF file
>>DECLARE Integer ShellExecute IN "Shell32.dll" ;
>>    INTEGER hwnd, ;
>>    STRING lpVerb, ;
>>    STRING lpFILE, ;
>>    STRING lpParameters ,;
>>    STRING lpDirectory, ;
>>    LONG nShowCmd
>>lcPDFFile = lcPdf
>>=Shellexecute(0,"Open",lcPdfFile,"","",3)
>>&& -----------------------------------------------------------------
>>
>
>What is the return value of ShellExecute?
>
>lnRetVal =Shellexecute(0,"Open",lcPdfFile,"","",3)
>WAIT WINDOW lnRetVal
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform