Crystal reports query
would anyone know how to dynamically change the datasource of a crystal report from within VB.
The documentation lists the 'SetDataSource' method but it does not appear to work.?
Thx
would anyone know how to dynamically change the datasource of a crystal report from within VB.
The documentation lists the 'SetDataSource' method but it does not appear to work.?
Thx
SetDataSource passes a Recordset or Dataset to the specified table in the report when using a 'Push Model'.
For the 'Pull Model' you would need to update TableLogOnInfo with the new datasource information. Specifically ConnectionInfo which has the following members:
| DatabaseName | String. Gets or sets the name of the database. |
| Password | String. Gets or sets the password for logging on to the data source. |
| ServerName | String. Gets or sets the name of the server or ODBC data source where the database is located. |
| UserID | String. Gets or sets a user name for logging on to the data source. |
http://www.businessobjects.com/products/dev_zone/net/gettingstarted.asp?ref=devzone_netzone_nav
Keith - Business Objects
HI Keith,
I am stuck in a problem,
in my ,NEt code, i need to get the query from the Crystal Report object. (I do not need to set the query, but from an existing Crystal report I need to get the query string)
and then do some manupulation on that query,
But I not able to get the QUERY in the .Net -
Pls help, my whole development is stuck because of this,
Thanx Avi.