Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameter values
Message
De
20/11/2002 14:20:04
 
 
À
16/10/2002 12:32:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00711704
Message ID:
00724865
Vues:
25
Craig,

Thank you for the article "Integrating Crystal with VFP".
The following code is supposed to view the report with passing a parameter.
The report has (1) parameter field called loanid and is a numeric field.
This field is used within the query to print this report for one loan number.
The loan number is stored in m.masterloan.
when the application runs
it does not seem to build the array for the parameter field**ocparm=CRReport.ParameterFields()**
when it gets to oparm.SetCurrentValue(&m.masterloan) then I get function not found.

any help would be appreciated

Thanks
Gary

CRApplication = createobject("CrystalRuntime.Application")
CRReport = CRApplication.openreport(&thisreport)
ocparm=CRReport.ParameterFields()
oparm=ocparm.Item(1)
m.masterloan=int(m.masterloan)
oparm.SetCurrentValue(&m.masterloan)
this.rptviewer.reportsource=CRReport
this.rptviewer.enableexportbutton=.t.
this.rptviewer.enablepopupmenu=.t.
this.rptviewer.enablezoomcontrol=.t.
this.rptviewer.enablesearchexpertbutton=.t.
this.rptviewer.viewreport
God Bless America
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform