RE: PDF on VFP Form

2015-04-20 Thread Chris Davis
and then called my code to display the pdf and its now working. Thanks -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Dave Crozier Sent: 20 April 2015 11:57 To: profoxt...@leafe.com Subject: RE: PDF on VFP Form Chris, Just a WAG here but have you

RE: PDF on VFP Form

2015-04-20 Thread Dave Crozier
Well done! Dave -Original Message- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Chris Davis Sent: 20 April 2015 12:58 To: profox@leafe.com Subject: RE: PDF on VFP Form No that has no effect at all but it has led me to solve the issue, as I miss typed when I added

RE: PDF on VFP Form

2015-04-20 Thread Chris Davis
] On Behalf Of Ted Roche Sent: 17 April 2015 18:02 To: profoxt...@leafe.com Subject: Re: PDF on VFP Form On Fri, Apr 17, 2015 at 10:58 AM, Chris Davis chr...@actongate.co.uk wrote: Using the Microsoft Browser Control to display a PDF within the VFP Form. This sometimes works

RE: PDF on VFP Form

2015-04-20 Thread Dave Crozier
Chris, Just a WAG here but have you tried clear resources immediately before you view the PDF? Sometimes VFP can get in a real tangle thinking that an image/document is in cache when it isn't. Dave -Original Message- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Chris

Re: PDF on VFP Form

2015-04-17 Thread Ted Roche
On Fri, Apr 17, 2015 at 10:58 AM, Chris Davis chr...@actongate.co.uk wrote: Using the Microsoft Browser Control to display a PDF within the VFP Form. This sometimes works and sometimes without any errors just displays a grey box instead. Any ideas? Let's narrow down

RE: pdf in vfp

2008-07-09 Thread Jim Harvey
Harvey Hanover Shoe Farms, Inc. M.I.S./Corresponding Officer Off: 717-637-8931 fax: 717-637-6766 email: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Schummer Sent: Tuesday, July 08, 2008 7:03 PM To: profox@leafe.com Subject: RE: pdf

Re: pdf in vfp

2008-07-09 Thread Joe Yoder
: pdf in vfp It works fine with me. fname = SPACE(2) fname = GETFILE(pdf) IF EMPTY(fname) RETURN ENDIF *!* mcheck = alltrim(checks.pathname) + ALLTRIM(checks.filename) + .pdf declare long ShellExecute in shell32.dll ; long hwnd, ; string lpszOp, ; string lpszFile

Re: pdf in vfp

2008-07-09 Thread MB Software Solutions General Account
Joe Yoder wrote: I've been playing with the same code and have the pdf come up some of the time and some of the not. ShellExecutes always returns 42 whether it works or not. Has anyone else seen this or have an explanation? I tried it with .doc files and had Word come up almost every

Re: pdf in vfp

2008-07-09 Thread Joe Yoder
Account To: [EMAIL PROTECTED] cc: Subject: Re: pdf in vfp Joe Yoder wrote: I've been playing with the same code and have the pdf come up some of the time and some of the not. ShellExecutes always returns 42 whether it works or not. Has anyone else seen this or have an explanation? I tried

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Jim Harvey wrote: This doesn't work using a pdf (no error returned, just doesn't do anything), but does with a jpg file, is it possible with a pdf? ***commandbutton.click mcheck = alltrim(checks.pathname) + ALLTRIM(checks.filename) + .pdf declare long ShellExecute in shell32.dll ;

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Paul McNett wrote: Jim Harvey wrote: This doesn't work using a pdf (no error returned, just doesn't do anything), but does with a jpg file, is it possible with a pdf? ***commandbutton.click mcheck = alltrim(checks.pathname) + ALLTRIM(checks.filename) + .pdf declare long ShellExecute in

Re: pdf in vfp

2008-07-08 Thread gureumi
It works fine with me. fname = SPACE(2) fname = GETFILE(pdf) IF EMPTY(fname) RETURN ENDIF *!* mcheck = alltrim(checks.pathname) + ALLTRIM(checks.filename) + .pdf declare long ShellExecute in shell32.dll ; long hwnd, ; string lpszOp, ; string lpszFile, ; string

RE: pdf in vfp

2008-07-08 Thread Jim Harvey
] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul McNett Sent: Tuesday, July 08, 2008 2:12 PM To: profox@leafe.com Subject: Re: pdf in vfp Paul McNett wrote: Jim Harvey wrote: This doesn't work using a pdf (no error returned, just doesn't do anything

RE: pdf in vfp

2008-07-08 Thread Jim Harvey
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gureumi Sent: Tuesday, July 08, 2008 2:14 PM To: ProFox Email List Subject: Re: pdf in vfp It works fine with me. fname = SPACE(2) fname = GETFILE(pdf) IF EMPTY(fname) RETURN ENDIF *!* mcheck = alltrim(checks.pathname

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Jim Harvey wrote: Adobe is installed, and it will display the pdf using the command window. Interesting. If it finds it with 'start the_file.pdf' but not using ShellExecute then that is baffling. Not sure about shellexecute's return value, I can't seem to see anything in the debugger...

RE: pdf in vfp

2008-07-08 Thread Jim Harvey
:[EMAIL PROTECTED] On Behalf Of Jim Harvey Sent: Tuesday, July 08, 2008 2:29 PM To: 'ProFox Email List' Subject: RE: pdf in vfp Gureumi, When I use your code the Open File dialog appears, but after I select a pdf, nothing happens. I'm running Vista, is this an issue maybe? James E Harvey Hanover

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Jim Harvey wrote: I'm running Vista, is this an issue maybe? Could be some anti-Adobe code got put in place, but I doubt it. More likely some security layer is getting in your way. Check the system, security, and application event logs for anything amiss. Paul

RE: pdf in vfp

2008-07-08 Thread Jim Harvey
To: profox@leafe.com Subject: Re: pdf in vfp Jim Harvey wrote: Adobe is installed, and it will display the pdf using the command window. Interesting. If it finds it with 'start the_file.pdf' but not using ShellExecute then that is baffling. Not sure about shellexecute's return value, I can't

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Jim Harvey wrote: The return value is 31. Okay, and the msdn bible says that anything 32 is an error. I *think* that code 31 matches up with SE_ERR_NOASSOC which is There is no application associated with the given file name extension. This error will also be returned if you attempt to print

RE: pdf in vfp

2008-07-08 Thread Tracy Pearson
What happens when you remove the ( ) from around mcheck ShellExecute(0,'Open',(mcheck),'','',0) Tracy -Original Message- From: Jim Harvey Sent: Tuesday, July 08, 2008 1:52 PM This doesn't work using a pdf (no error returned, just doesn't do anything), but does with a jpg file, is it

Re: pdf in vfp

2008-07-08 Thread KAM
Here is how I do it: Function ssiRun Lparameters lcProgramToRun, luWindow * this is a better way to run an external program than ! or RUN /N etc If Type(luWindow) = L luWindow = 1 Endif Local loshell loshell = Createobject(WScript.Shell)

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Jim Harvey wrote: The return value is 31. Confirmed that this is SE_ERR_NOASSOC (not by msdn, which doesn't seem to provide a mapping of error code numbers to constant names). Check out this thread, sounds like the same problem.

RE: pdf in vfp

2008-07-08 Thread Tracy Pearson
Just a word of caution I was bit by this with a clients Norton configuration. And I've read that a network group policy can prevent using the Shell object as you are doing. I was told by Christof at SWFox 2006 that CScript will work, but there's that black box again. Tracy -Original

Re: pdf in vfp

2008-07-08 Thread Paul McNett
Tracy Pearson wrote: Just a word of caution I was bit by this with a clients Norton configuration. And I've read that a network group policy can prevent using the Shell object as you are doing. I was told by Christof at SWFox 2006 that CScript will work, but there's that black box again.

RE: pdf in vfp

2008-07-08 Thread Rick Schummer
You can check this out, but the fifth parameter is the folder, and the second parameter is the file name. You have combined them in your code. declare long ShellExecute in shell32.dll ; long hwnd, ; string lpszOp, ; string lpszFile, ; string lpszParams, ;