Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal 8.5 RDC problem adding a group using a Formula
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00643583
Message ID:
00644104
Vues:
42
I am afraid that is not the problem. I do not get the error if "oField" is a field from a table.
The oReport.AddGroup (0, oField, 14, 0) works fine if "oField" is a field from a table.
I do get the error if "oField" is a formula.

Other Ideas ?


>The first parameter of the AddGroup method cannot be 0.
>
>>I am trying to recreate, using the RDC, a sample .rpt file that comes with Crystal 8.5.
>>I am using the following code to create a formula field in Crystal and then add a group
>>
>>* get the first character of the Customer.Customer Name field
>>WITH oReport.FormulaFields
>> oFormula = .Add("First Letter", "{Customer.Customer Name}[1]")
>>ENDWITH
>>* add a group
>>oreport.AddGroup (0, oFormula, 14, 0)
>>
>>When trying to add the group I get an error "OLE error code 0x80070057: The parameter is incorrect."
>>
>>*the code to add a group using a database field works fine
>>oField = oReport.database.tables.item(1).fields.item(1)
>>oreport.AddGroup (0, oField, 14, 0)
>>
>>Any ideas?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform