Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help Incorporating Reports in App
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Titre:
Help Incorporating Reports in App
Divers
Thread ID:
00768789
Message ID:
00768789
Vues:
42
I was wondering if anyone could help with trying to use the Crystal Report Viewer in Visual Foxpro 6. I am using CR 9. To begin with I just want to create a form off of a menu item, add a CR Viewer object to that form and have it show a report that I have created that is called "C:\Report.rpt". This is what i have so far, but can't seem to get any further. I thing I need to assign the ReportSource variable the report name value and then call the ViewReport action. I'm just not sure how to continue. Any help would be greatlty appreciated. This is the code I have so far.

public oMyForm
abc = '"C:\Report.rpt"'
oMyForm = CREATEOBJECT("form")
oMyForm.AddObject("olecontrol1","olecontrol","CRViewer9.CRViewer")
oMyForm.olecontrol1.Visible = .T.
oMyForm.olecontrol1.reportsource (abc)
oMyForm.olecontrol1.Top = 100
oMyForm.olecontrol1.Left = 100
oMyForm.olecontrol1.Height = 170
oMyForm.olecontrol1.Width = 240
oMyForm.Show
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform