Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters
Message
De
05/03/2003 15:43:52
Fabian Valencia
Calamos Asset Managment Inc.
Naperville, Illinois, États-Unis
 
 
À
05/03/2003 12:54:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Crystal Reports
Divers
Thread ID:
00761249
Message ID:
00761771
Vues:
22
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform