Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
From
05/10/2012 19:08:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ShellExecute
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01554436
Message ID:
01554436
Views:
86
Hello everyone,

I have been using this code for several years and been running great until Adobe Reader 9.5 and Adobe Reader X.

Here is my code:
lcAction = "Open"
lcLink = "D:\documents\file.pdf"
lcParms = ""
lcDir = SYS(2023)
lnsize = 2

DECLARE INTEGER ShellExecute ;
    IN SHELL32.dll ;
    INTEGER nWinHandle, ;
    STRING cOperation, ;
    STRING cFileName, ;
    STRING cParameters, ;
    STRING cDirectory, ;
    INTEGER nShowWindow
    
DECLARE INTEGER FindWindow ;
    IN WIN32API ;
    STRING cNull,STRING cWinName
    

x = ShellExecute(FindWindow(0, _SCREEN.caption), lcAction, lcLink, lcParms, lcDir, lnsize)
If I want to print, then lcAction = "Print"

When I have installed Adobe Reader X, it looks like lcAction = "Open" does not work any more. I get error# 2.

If I use lcAction = "Read", it works.

On the other hand, I cannot figure out what lcAction = ?????? for printing when having Adobe Reader X.

Please help ...

Bob
Next
Reply
Map
View

Click here to load this message in the networking platform