Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute
Message
De
05/10/2012 19:08:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ShellExecute
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01554436
Message ID:
01554436
Vues:
85
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform