Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subreport parameters
Message
De
31/03/2005 11:06:16
 
 
À
31/03/2005 10:26:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01000333
Message ID:
01000354
Vues:
25
oSubRpt = oRpt.OpenSubReport("SubRepName")
IF oSubRpt.HasSavedData
   oSubRpt.DiscardSavedData()
ENDIF
oSubCParm = oSubRpt.ParameterFields()
oSubParm = oSubCParm.Item(1)
oSubParm.SetCurrentValue(loan_sell_date)
oSubParm = oSubCParm.Item(2)
oSubParm.SetCurrentValue(wkinv_cd)
>I have a crystal report that runs within my VFP application. This report uses 2 parameter fields and I set the value within the code as follows
>
>ocr = createobjec("CrystalRuntime.application")
>orpt = ocr.openreport("f:\apps\in-house apps\eomaccounting\REPORTS\Other Reports\Loan Sale MSH Posting.rpt")
>if orpt.hassaveddata
> orpt.discardsaveddata()
>endif
>ocparm=orpt.ParameterFields()
>oparm=ocparm.Item(1)
>oparm.SetCurrentValue(loan_sell_date)
>oparm=ocparm.Item(2)
>oparm.SetCurrentValue(wkinv_cd)
>orpt.printout()
>release ocr
>
>I have had to change this report and add a subreport to the report footer that is a summary of the main report.
>
>How do I set the value of a parameter field within the subreport?
>
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform