Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReaderWrapper to control Adobe Reader - Use in VFP?
Message
De
13/12/2004 11:06:53
 
 
À
13/12/2004 10:51:56
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00968303
Message ID:
00968765
Vues:
10
I got code working that launches the pdf in Adobe Reader (createprocess with the /p) and displays the print dialog box but when the user clicks on Print or Cancel Adobe Reader is still open of course. I suspend processing in VFP (getexitcodeprocess) while Adobe Reader is open which will not work in this case the way I want it to. The user is forced to manually close Adobe Reader after printing or clicking on cancel or else the vfp app remains suspended because it is looking for the Adobe Reader process to quit. Ideally I would:

1. Launch the pdf in Adobe Reader nonvisual and automatically launch the print dialog window. ->DONE
2. Suspend processing in VFP until the Adobe process exists. ->DONE
3. When the user clicks on Print or Cancel, EXIT ADobe Reader automatically. ->PROBLEM
4. Return processing to VFP when the Adobe Reader process exits. ->DONE

As you can see, item #3 is the problem unless I let the users be responsible for not only clicking on Print or Cancel in the Adobe Reader print dialog window, but also manually closing the reader afterwards so processing can return to VFP.

Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform