Try putting SYS(2333 , 1 ) in the form load and SYS(2333, 0) in the form destroy and see if it works better. I couldn't even get me CRViewer form to work without doing this.
BOb
>Help me, please !!
>I am trying to work with Crystal Report Viewer Control 9.
>Following the instructions of the book CRYSDEV I have subclassed the control (in order to use it in a form) adding property (oCrystal - oReport) and methods (Setup).
>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)
>
>thank in advance
>
>franco felosi - Brescia Italy
>
francofelosi@acut.it