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 09:04:18
 
 
To
10/12/2004 18:57:36
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:
00968709
Views:
12
Thanks for looking at it Herman. I appreciate it. I am testing it and playing around with it now. I had to play with the sleep times a bit to prevent it trying to connect too soon and still the settings do not seem to be consistent. I wonder if there is a way to postpone processing without using sleep or how to determine the required time to wait. Now everything pretty much works except I continously get a c5 error when it tries to close Adobe.

Also, I thought the print method would launch the print dialog but it does not. I'll have to research and see if that is possible. My intention was to silently print but to display the print dialog without displaying Adobe at all as this does (exept that it does not display the print dialog):
lcfile = "c:\tracy\p1.pdf"
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
    INTEGER hwnd, ;
    STRING lpVerb, ;
    STRING lpFile, ;
    STRING lpParameters, ;
    STRING lpDirectory, ;
    LONG nShowCmd

llok= ShellExecute(0, "open", "acrord32.exe", " /p /h "+lcfile, "", 0)
return llok
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