Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In way over my head with this web stuff!
Message
From
11/04/2002 07:14:20
 
 
To
10/04/2002 11:53:56
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00643132
Message ID:
00643626
Views:
8
Hi!

>Hi Vlad,
>
>>Just for your information: I remember, latest versions of West Wind WEB connection (www.West-Wind.com) contain an example of using of graphs.
>
>I saw that article but it thought that it simply displayed a GIF image and didn't embed an activex control which is what I am trying to accomplish.
>

The things I'm talking about are a bit different. This is not an article, but the sample in latest WWC version. I just ran WWC sample page and read following:

<<<<<<<<<<<<<<<<<<

Simple Graphing with Internet Explorer
The wwHTML::IEChart method allows easy creation of basic graphs using the IEChart ActiveX control available from Microsoft. Fill in some numeric values to graph in the textboxes below.
....
<<<<<<<<<<<<<<<<<<



>>To access the object and configure it, you require to use the Document property of the WEB Browser Control, that gives you a complete access to the DOM - Document Objects Model. These objects are similar to what you use when programming WEB pages by adding a Java Script code to them. The objects, properties and methods are described in MSDN. Also, for samples, just look for Java Script samples and DHTML samples.
>
>Any ideas where I may find such samples?

All this is in MSDN Library and at the MS site pages. Just search in the libraries - there are really a LOT of stuff to learn. There are also a few sites around dedicated to learning of these things.

>
>>Once you managed to put ActiveX object and access it...
>
>That's my problem. I don't know how to access the activex control. I can use FrontPage to add a chart control to my web page, however, once done, how do I get a reference to it from VFP? When I open the debugger I can see that there are some values that display when I watch:
>
>_vfp.activeform.olebrowser.document
>
>None of these things seem to be a reference to the chart control!

VFP6 does not dispalys all properties of the ActiveX object and its child objects. In VFP7 you can, and aMemebrs() function will return you also methods. Try to look at it in VFP7. Or, if you use Visual Studio 6.0, Install Visual Basic and try to do this from there (I mean investigate objects model just by browsing objects in run-time using debugging tools).


>
>>As you see, to do all this, you have to learn and should have manuals/references for at least three things: HTML, DOM, objects model for ActiveX control you chosen to use for Graphs displaying.
>
>Is there a DOM for the web browser that I can download?

DOM is DOM - it is the same for all ActiveX controls, Internet Explorer, WEB Browser control etc. It is described in MSDN Library.

>
>>If you want to display just a chart to users, you do not need to do this in form of the WEB page. VFP can display ActiveX controls by self.
>
>I know about the latter. In fact, I use Graphic Server's activex control in my VFP forms to show all types of charts and graphs with great success. I simply want to try the same ideas in a web page. Next, I want to try to put a grid, not a HTML table, in a web page...yeah I'm a sick puppy :)
>

Well, I do not think you will be able to put a VFP grid on the WEB page. You can try, however, special ActiveX grids (there are a lot of them around).

>>Good luck!
>
>Somehow I know I'm going to need it. I'm going to have to learn HTML, scripting, blah, blah, blah. OK. I'm ready. Bring it on.
>
>
>Thanks again for the reply.
>
>Mike
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform