
Passing a connection to Crystal Report
Hi Allen,
The OCX does not have this ability. If your ADO connection is using
ODBC, then the RDC and Print Engine API can use that connection by
getting the hdbc handle of the connection. You would use the
SetActiveDataSource with the RDC and PELogonSQLServerWithPrivateInfo if
you use the PE Calls.
I found an article in Crystal Decision's Knowledge Base that will help
you. Do a search for article number c2002748 .
--
--
Sincerely,
Brian Dong
To reply, remove nospam from the address.
Quote:
>Hello everyone,
> I'd like to know if there is a way to pass a connection (ADO) -
>not the connection string - through VB code to the Report. So the
>report uses the same connection that is already open. I'll be using
>the OCX in VB.
>Thankx in advance.