My project involves the CR 8.5 RDC and Visual Basic and I need to basically let users type in their own SQL queries and press a button and have a report come up that reflects that query.
My first stab was to just use the regular ODBC connection stuff ( Add the tables I want to the report Database object ) and then change the SQLQueryString member when necessary. But this didn't work out too well as I've been unable to get the report to refresh.
So I tried again using an ADO connection and it works just fine with the dynamic querying, however it is intolerably slow. It takes about 20-30 seconds to generate a 90 page report, which takes 1-2 seconds to do with the ODBC connection.
Any suggestions on speeding up the performance of the ADO connection, or hints on how to achieve the same goal using the ODBC and SQLQueryString approach?
My first stab was to just use the regular ODBC connection stuff ( Add the tables I want to the report Database object ) and then change the SQLQueryString member when necessary. But this didn't work out too well as I've been unable to get the report to refresh.
So I tried again using an ADO connection and it works just fine with the dynamic querying, however it is intolerably slow. It takes about 20-30 seconds to generate a 90 page report, which takes 1-2 seconds to do with the ODBC connection.
Any suggestions on speeding up the performance of the ADO connection, or hints on how to achieve the same goal using the ODBC and SQLQueryString approach?