Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any Crystal Report Gurus?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Any Crystal Report Gurus?
Miscellaneous
Thread ID:
00657026
Message ID:
00657026
Views:
53
I am working with Crystal Reports 6.0

I create an Object for CR and open the report but I need to set the First
Parameter to "01"

Does anyone know how to do this?

This is what I have so far...

* Create the CR Object
loCr = CREATEOBJECT("CrystalRuntime.Application")

* Open the report
loCrRpt = loCr.OpenReport("C:\Foxpro\Fss\Reports\Statistics.Rpt")

* Set the data location
loCrData = loCrRpt.Database
loCrTables = loCrData.Tables
loCrTables.Item(1).Location = "C:\Scratch\Stat.DBF"

According to the Help file the usage is like this.
Report.ParameterFields(ArrayIndex)[=ParameterName;NewValue;SetCurrentValue]

For example, to change the value of the first parameter field in a report
(parameter1) to red use the following syntax (user will not be prompted to
enter a value):

CrystalReport1.ParameterFields(0) = parameter1;red;TRUE



I can not get this to work...
loCrRpt.ParameterFields(0) = [parameter1;01;TRUE]

Any help would be appreciated,
Ron
Ronald L. Thorp
http://www.Fox-Pros.com
Fox-Pros, Inc.
Office 407-498-0100
Next
Reply
Map
View

Click here to load this message in the networking platform