Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run a Crystal Report from VFP 6.0?
Message
De
22/10/2001 10:32:06
Martin Weag
Step Software S.R.O.
Kosice, Slovaquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00569698
Message ID:
00571630
Vues:
32
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform