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 10:51:56
 
 
To
13/12/2004 10:22:00
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:
00968758
Views:
10
>I don't have any crashes using this code. Strange... It works fine on my system...
>I'm using Adobe Reader 6.02...
>
>>>I don't know what I was thinking (or not thinking). This does it:
>>>
>>>
>>>*--Do not hide the print dialog window (/h switch hides it)
>>>IF ShellExecute(0, "open", "acrord32.exe", " /p "+lcpfile, "", 0) <= 32
>>>
>>
>>Yep. I just tried that too :-)
>>But the /p still crashing Adobe, right after the "printing..." dialog window disappear.

I tried not to use /p. So, I'm using CreateProcess and not showing the Adobe window then make the heigth and width to 0. Runs & print very fine.

I'm spying on what the /p do exactly. It using the same technique! But why it crashed ? I'm confused now...hehehe..

Cheers
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform