Skip to Content
0
May 29, 2020 at 01:10 PM

Closing a CrystalDecisions.CrystalReports.Engine connection.

152 Views Last edit May 29, 2020 at 03:18 PM 2 rev

We have an executable that uses CrystalDecisions.CrystalReports.Engine.
After defining the proper Table properties we call the ApplyLogin method which successfully creates and ODBC connection to a database.
However, as long as our application is running, that connection to the database remains open, we can see it on the database side.
There are only three public methods we can see:
1. ApplyLogonInfo
2. SetDataSource
3. TestConnectivity

Question: without close our application, how do we close the connection made?