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
Divers
Thread ID:
00768789
Message ID:
00768861
Vues:
17
Look at the Crystal Reports articles on my web site. There is an example of using the report viewer.


>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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform