Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
ActiveX controls in VFP
Hi Michael,
I read your messages and was happy to see that there is someone else "out there" using the web browser control with VFP. I'm also glad to see that you've solved your problem.
I hope that you may be able to shed some light on a problem that I'm having using the web browser control. I put an activex control on a web page that I display using frames. I want to be able to access the activex control from VFP so that I can change its properties (its a charting control so I want to be able to change the chart style from say bar to line, etc.) When I try to make a reference to the activex control using:
_vfp.activeform.browser1.document.all("chart")
VFP always returns a .NULL. object (in the debugger).
Do you know where I'm going wrong? Should I not be able to access the activex control from VFP? I get the feeling that maybe the frame web page needs to be in the heirarchy somewhere, but, how do I refer to it?
Any suggestions and/or comments are welcome.
TIA
Mike
>I found the cause of the error. The circumstances which I thought caused the problem turned out to be erroneous.
>
>The reason this was happening was that I had a selected table with a field called "url". Somehow this was clashing with the url parameter required by the BeforeNavigate2 method. Changing the name of the field to something else made the problem go away.
>
>MR
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only