Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recover field's value from crystal preview window
Message
De
06/06/2003 06:16:39
Franco Felosi
Acut Servizi Srl
Brescia, Italie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
Recover field's value from crystal preview window
Divers
Thread ID:
00797087
Message ID:
00797087
Vues:
97
Hi.
Someone can help me to convert this VB6 code to use it in visual foxpro 8.0 ??

'Preview commandbutton
Private Sub Command1_Click()
Dim ocrr As CRAXDRT.Application
Dim orpt As CRAXDRT.Report
Set ocrr = CreateObject("CrystalRuntime.application")
Set orpt = ocrr.openreport("C:\report\prova8.rpt")
Me.CRViewer91.ReportSource = orpt
Me.CRViewer91.ViewReport
End Sub

'Activex CRViewer clicked event
Private Sub CRViewer91_Clicked(ByVal x As Long, ByVal y As Long, EventInfo As Variant, UseDefault As Boolean)
Dim oeve As CRVIEWER9LibCtl.CRVEventInfo
Set oeve = EventInfo
Set fcol = oeve.GetFields 'fields collection
Set fiel = fcol.Item(fcol.SelectedFieldIndex)
MsgBox fiel.Value
End Sub

thanks !!
franco
francofelosi@acut.it
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform