Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist
#1
I've installed a new VFP 9 development environment and have run the installer. When I run my form that includes the AntView control I get the error:

Class cannot be instantiated because Member IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist.

It gets this error when the following command is run.

thisform.oAvdCtrl = NEWOBJECT('avdctrl','avdctrl.prg')

That prg is included in the project and the ocx is registered. What else could I be missing?

Phil
Reply
#2
Hello Phil,

This typically happens when the control has new events added for the document interface, but you are still using an older version of the file avdctrl.prg which does not have these new events added to them yet.

Note that in the latest examples the file avdctrl.prg has been renamed to avdeventsv1nw.prg

You can either use the new file, or copy the missing declarations from that file (You're likely missing more than just this one) into avdctrl.prg.

I highly recommend reading the help file in the VFP examples area as it also explains how you can generate this file on your own.

Hope this helps,
--
Wil
Reply
#3
(2024-12-18, 14:52:39)wila Wrote:
Quote:
Quote:Hello Phil,

This typically happens when the control has new events added for the document interface, but you are still using an older version of the file avdctrl.prg which does not have these new events added to them yet.

Note that in the latest examples the file avdctrl.prg has been renamed to avdeventsv1nw.prg

You can either use the new file, or copy the missing declarations from that file (You're likely missing more than just this one) into avdctrl.prg.

I highly recommend reading the help file in the VFP examples area as it also explains how you can generate this file on your own.

Hope this helps,
--
Wil


Thanks Wil! That was the issue. I didn't notice the prg had changed names.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)