Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hai
i am use crystal reports in my website,i am add crystal reports and add database to reports by choosing Data Expert in design time and create new connection and set my local server name,database name ,userid and password .Once create connection i can add tables and finally i can drag and drop fields to crystal reports fields.if i see main report preview in design time i can view the report correctly and also in running time also i can get correct report.But if i deploy in server machine ,i need to change datasource,database name,userid and password,bcz in server machine datails different from my local machine like datasource,database name,userid and password.So how to dynamically change the reports connection form web config.i mean how to pass data source ,database name,userid and password to crystal report in run time.

Regards
Aravind
Posted

Pass all these values as parameters and then use the parameters in the connection string in your report.
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900