Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help Incorporating Reports in App
Message
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
Help Incorporating Reports in App
Miscellaneous
Thread ID:
00768789
Message ID:
00768789
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform