Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters
Message
From
05/03/2003 15:43:52
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, United States
 
 
To
05/03/2003 12:54:16
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00761249
Message ID:
00761771
Views:
23
>I tried it and it works. Here's the code I tested with:
>
>
>ocr = CREATEOBJECT("crystalruntime.application")
>orpt = ocr.OpenReport("c:\cr\testparms.rpt")
>orpt.EnableParameterPrompting = .F.
>orpt.ParameterFields.Item(1).SetCurrentValue("New title")
>orpt.PrintOut()
>
>
>
>
>>Thanks, Craig. Sorry, I believe I mistyped before. The way you described is the way I'm using the command. One thing I did notice is that the method SetCurrentValue appears to be locked when I use intellisense to pull up it up. I believe this might be the key. Any ideas on how to "unlock" it?
>>

Just got it to work. The problem I had was with the order of operations. When I set my parameters first, then tried to set the data, the parameters were not being set. When I switched the order, and set the data location first, then the parameters, it worked! I'm not exactly sure why this works different then in 8.5, but I just tested 3 reports this way without incident.

Thanks for your help Craig.
Previous
Reply
Map
View

Click here to load this message in the networking platform