Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to run a Crystal Report from VFP 6.0?
Message
From
22/10/2001 10:32:06
Martin Weag
Step Software S.R.O.
Kosice, Slovakia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00569698
Message ID:
00571630
Views:
33
This message has been marked as a message which has helped to the initial question of the thread.
Steve, I use the following method. I tested it on CR 8.5 and VFP 7.0


With Thisform
.oCrystalReports = Createobject("CrystalRuntime.Application")
.oReport = Createobject ("CrystalRuntime.Report")
.oReport = .oCrystalReports.OpenReport("my_report.rpt")
.oReport.ParameterFields(1).SetCurrentValue(my_parameter1)
.oReport.ParameterFields(2).SetCurrentValue(my_parameter2)

.AddObject("oleCRViewer", "oleControl", "crViewer.crViewer")

With .oleCRViewer
* Set report viewer properties
.Top = 1
.Left = 1
.Height = Thisform.Height - 2
.Width = Thisform.Width - 2
.ReportSource = Thisform.oReport
.ViewReport()

Endwith
Endwith

Martin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform