Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReaderWrapper to control Adobe Reader - Use in VFP?
Message
From
13/12/2004 11:06:53
 
 
To
13/12/2004 10:51:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968303
Message ID:
00968765
Views:
12
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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform