Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subreport parameters
Message
From
31/03/2005 10:26:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
Subreport parameters
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000333
Message ID:
01000333
Views:
54
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
God Bless America
Next
Reply
Map
View

Click here to load this message in the networking platform