| Dart Home | PowerTCP WebServer for ActiveX | Custom Development | Reply | PowerTCP WebServer for ActiveX Topics | Forums |
| Author | Forum: PowerTCP WebServer for ActiveX Topic: use webserver control in Office2000 vba? |
| User336 Posts: 1 Member Since: 01/09/02 |
posted January 9, 2002 4:39 PM I'm attempting to use the webserver control on a userform in a Word2000 vba application. It seems to start fine, but none of the control's events fire when I hit the port with my web browser. My code basically looks like this: webServer1.RootDirectory = "c:\webroot" webServer1.LogDirectory = "c:\weblog" webServer1.Start 80, -1 I then point my browser to http://localhost, and none of the webserver control's events fire in the userform (webServer_Get, webServer_Put, webServer_Post, etc). The browser just spins indefinitely. Interestingly, it stops spinning and yields "cannot find page" at the moment I execute webServer.Stop in the vba app. Is the webserver control supported in Office2000 vba applications? If so, is there something I must add to the vba app to get the events to fire? WithEvents? Any help would be appreciated, thanks. -greg |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted January 9, 2002 6:00 PM Hi Greg, Well, this is a new one, using the Webserver in a Word doc. The events do not seem to fire if you place the control on the document, but if you instead reference it, and use WithEvents, it will work. -ken K M Drake Dart Tech Support |
| Cristian From: Santiago, Chile Posts: 1 Member Since: 04/27/06 |
posted April 27, 2006 11:29 PM i have the same issues on a HMI server with VBA (GE Proficy iFIX). Any help or sample code how to get Webserver tool work properly in Visual Basic for Application. Any help is very appreciated. thx Cristian |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 1, 2006 9:54 AM Hi Cristian, Well, It's been over 4 years since this question was originally posted, so I tried it again. I saw the same results. In VBA, you must create the WebServer in code, as opposed to placing it on a form. Also, it should be noted that if the control is referenced in code, you must add your license number to the registry of any machine on which the app is running. See the "Distribution in Scripted Environments" section in the help's Distribution page for more info on this. I am not familiar with GE Proficy iFIX, but this is what is required in Excel, Word, etc. -ken |
| Reply | PowerTCP WebServer for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|