Re: Opening PDF document from VFP 9.0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



You'll definitely want to wrap the process in a Try/Catch, particularly the
createobject().

Some network admins are disabling scripting for security reasons.
ShellExecute() would be the bulleproof choice. This approach is just a
wrapper around it, but sometimes the wrapper may be locked down. <s>

Dan

Stephen Ibbs wrote:
Hi Mohammed - PMFJI

thanks a lot - much easier than shellexecute!

Do I need to include any components in an installation setup to
ensure this works at a user's site?

Sincerely

Stephen
"Imaginecorp" <imaginecorp@xxxxxxx> wrote in message
news:On8CRwybGHA.1272@xxxxxxxxxxxxxxxxxxxxxxx
oShell = Createobject("wscript.shell")
application.olerequestpendingtimeout = 0
cFilename = << your adobe file name with path>>
oshell.run(cfilename,1)

Thats it.
Mohammed
www.imaginecorp.com/whatwedo.htm
"Shaqman" <shakeel@xxxxxxx> wrote in message
news:%23CojTqybGHA.4672@xxxxxxxxxxxxxxxxxxxxxxx
I have a pdf document that needs to be opened in the click()
method of a command button. The client will have adobe reader already
installed.

All I need is how to launch adobe reader and load the pdf file
for viewing...

Any help will be appreciated


.


Quantcast