Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report objects events
Message
From
27/05/2003 03:24:26
Franco Felosi
Acut Servizi Srl
Brescia, Italy
 
 
To
26/05/2003 21:51:55
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00792835
Message ID:
00792966
Views:
27
Hi Haydn, thank for your time.

I am trying to recover name or value of a field.

In a vfp form: (olecontrol1 = Crystal Report Viewer Control)
*!* commandbutton "PREVIEW" click
ocrr = Createobject("CrystalRuntime.application")
orpt = ocrr.openreport("C:\report\prova8.rpt")
thisform.olecontrol1.ReportSource=orpt
thisform.olecontrol1.ViewReport



*!* olecontrol1.clicked
*** ActiveX Control Event ***
LPARAMETERS x, y, eventinfo, usedefault
oEventinfo = eventinfo
oFields = oEventinfo.getfields() -> OLE ERROR

*** oEventinfo does not seem to be a valid vfp object

oField = oFields.item(oFields.SelectedFieldIndex)
? oField.name
? oField.value

Thank !
franco
francofelosi@acut.it
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform