views:

35

answers:

1

Crystal reports isn't working on different servers because they use different connection strings and crystal reports can't use the connection string stored on the web.config to access the database.

Is there an alternative to crystal reports that can use the connection string on the web.config file?

or does someone know how to fix the problem using crystal reports?

thanks.

+1  A: 

You can use the Crystal Reports API to modify the connection prior to rendering the report.

UPDATE:

Here's an example that uses the ASP.NET 2.0 CrystalReportsViewer control example in VB.NET

Conrad Frix
could you give an example? thanks
sergiogx
I it didn't seem to work... Im looking into that but anyway, how do I use a connection string name to pass the information? i have this on web.config <add name="informixConnection" connectionString="Dsn=ifxdb" /> and when I open a connection I use this line myconn.ConnectionString = ConfigurationManager.ConnectionStrings["informixConnection"].ConnectionString; How can I do something similar?
sergiogx