Hi all.
Following the instructions of the book CRYSDEV by Craig Berntson, I have subclassed the Crystal report viewer control adding property and methods.
The visualization function correctly but methods and events do not work.
Here the code of clicked event of the form control oleCRPreview and the error messages:
*** ActiveX Control Event ***
LPARAMETERS x, y, eventinfo, usedefault && in your sample oVentinfo ???
nPage = this.getCurrentPageNumber
=MESSAGEBOX(npage) && RETURN A RANDOM NUMBER (NEGATIVE ??)
ofields=eventinfo.getfields() && RETURN OLE ERROR 0X8002802B
ofield=ofields.item(1)
=MESSAGEBOX(ofield.name)
where is the problem eventinfo does not seem to be a valid foxpro object ??
thank in advance
franco
francofelosi@acut.it