IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist - Printable Version +- Antwise community forums (https://forums.antwise.com) +-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11) +--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12) +--- Thread: IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist (/showthread.php?tid=210) |
IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist - pivoten - 2024-12-18 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 RE: IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist - wila - 2024-12-18 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 RE: IANTVIEWDOCUMENTEVENTS_OnREquestElementExistsById does not exist - pivoten - 2024-12-18 (2024-12-18, 14:52:39)wila Wrote:Quote:Quote:Hello Phil, |