We help IT Professionals succeed at work.

Launching an Adobe PDF using the CreateObject command in FoxPro

HCPCJJ1
HCPCJJ1 asked
on
Medium Priority
1,232 Views
Last Modified: 2012-05-11
I have some simple code on a form to view a PDF file.

The following code is on page 6 of a pageframe.  It is in the dblClick method of a text field on a grid.

thispath="h:\cti\documents\"+clientno+ALLTRIM(thisfile)
loIE = Createobject("internetexplorer.application")
loIE.Visible = .T.
loIE.Navigate(thispath)

It works beautifully until you move to a different page in the pageframe and then come back.  Then, nothing happens when you double-click on the text field in the grid.  If you exit FoxPro and go back in, it works as before.  Any idea what I'm doing wrong?
Comment
Watch Question

Founder, Software Engineer, Data Scientist
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Olaf DoschkeSoftware Developer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you for your responses.  Both were acceptable solutions, however, the problem turned out to be the fact that the grid control was mondified dynamically during the click of the page, and was taking out the Double-Click command once the page came into focus.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.