I have a strange problem. We are using Delphi 5, CR9 and the CR9 crpe32.dll with a VCL wrapper. Delphi temporarily overrides the ODBC settings for the ODBC datasource that the reports use.
This normally works fine. However, in this case the program calls the same report multiple times with different parameters. The first call works fine. The second (and subsequent) call(s) there is a problem. The main part of the report is fine, but the subreports are wonky. Turns out that the override of the ODBC driver is not maintained into the subreports and it resets to the System DSN ODBC driver.
Has anyone ever encountered this before or have any ideas?
Thanks in advance!
This normally works fine. However, in this case the program calls the same report multiple times with different parameters. The first call works fine. The second (and subsequent) call(s) there is a problem. The main part of the report is fine, but the subreports are wonky. Turns out that the override of the ODBC driver is not maintained into the subreports and it resets to the System DSN ODBC driver.
Has anyone ever encountered this before or have any ideas?
Thanks in advance!