Programmatically override the ConnectionProperties stored in the Crystal report.Option #1
Completely override the ConnectionProperties collection stored in the report and replace it with a Connection String. This method would remove the need to setup an ODBC DSN.
Refer to article 000011041, "How to use a DSN-less connection with the Crystal Reports ActiveX Automation components in ABL
" for more information.Option #2
Use the ConnectionProperties collection to override the properties stored in the report, replacing saved values with new ones.
Refer to Option #1 in solution 000021094, "How to display a Crystal report via 4GL using the Crystal Report Viewer ActiveX Control
" for more information.Option #3
Override the DSN property stored in the report only and continue to use the LogOnServer method.
Refer to solution 000020800, "Crystal Reports: How to change the ODBC DSN connection at runtime?
" for more information.