Information générale
Catégorie:
Crystal Reports
Titre:
Help Incorporating Reports in App
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement