Re: Opening PDF document from VFP 9.0
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Thu, 4 May 2006 09:22:23 -0700
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
.
- References:
- Opening PDF document from VFP 9.0
- From: Shaqman
- Re: Opening PDF document from VFP 9.0
- From: Imaginecorp
- Re: Opening PDF document from VFP 9.0
- From: Stephen Ibbs
- Opening PDF document from VFP 9.0
- Prev by Date: Re: Grids... simple, but I don't know...
- Next by Date: Re: Slow or unpredictable performance of BROWSE FOR
- Previous by thread: Re: Opening PDF document from VFP 9.0
- Next by thread: Chicago FUDG member presentations 6 May 06
- Index(es):