S
Shadow Lynx
I'm trying to generate Crystal Reports via ASP.Net 2.0 and the report
takes a substantial time to render. The render time, oddly enough,
comes not from accessing the data and building the report, but from
just setting the credentials for the report to connect to the SQL DB
server!
Specifically, the line of code that takes up to a few seconds PER TABLE
(on a 3.2GHz Dual Core with 4GB of RAM!) is:
myTable.ApplyLogOnInfo(myTableLogonInfo)
The ApplyLogOnInfo() method is maddeningly slow. Unfortunately, it
must be called for each and every table used in each report (and
subreport(s)), which makes a simple report take over a minute to load,
99% of which is consumed by the ApplyLogOnInfo() method.
I'd use the SetDatabaseLogon() but it is only effective on changing
tables that are already set to the same server name and database
name... which means it can't be used to change the server or database
name (how pointless is that!?)
Is there some other (much faster!) way of doing things or is this the
only way and why, oh, why does it take so insanely long to set database
credentials!?
takes a substantial time to render. The render time, oddly enough,
comes not from accessing the data and building the report, but from
just setting the credentials for the report to connect to the SQL DB
server!
Specifically, the line of code that takes up to a few seconds PER TABLE
(on a 3.2GHz Dual Core with 4GB of RAM!) is:
myTable.ApplyLogOnInfo(myTableLogonInfo)
The ApplyLogOnInfo() method is maddeningly slow. Unfortunately, it
must be called for each and every table used in each report (and
subreport(s)), which makes a simple report take over a minute to load,
99% of which is consumed by the ApplyLogOnInfo() method.
I'd use the SetDatabaseLogon() but it is only effective on changing
tables that are already set to the same server name and database
name... which means it can't be used to change the server or database
name (how pointless is that!?)
Is there some other (much faster!) way of doing things or is this the
only way and why, oh, why does it take so insanely long to set database
credentials!?