One way would be to populate formulas with the fields that change. E.g.; say I have one field I need to change. Call it cust_1stName.table.
Create a formula. Call it @field1
Add the field into a formula
Run the report. You will see the data for cust_1stName.table.
Now we want to change the field to cust_lastName.table. Use the code as described in the following KBA:
1214187 - Modifying report formula fields at runtime using the Crystal Reports .NET SDK
1704566 - How to change formula text at runtime using Crystal Reports Application Server .NET SDK
Alternatively, you can add objects to the report using the Report Creation APIs from the InProc RAS SDK:
1284635 - How can I add a report formula using the Crystal Reports .NET inproc RAS SDK?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter