Click here to Skip to main content
16,006,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

How can I access from a C# application a Crystal Report without writing everytime at the begining the user name and the password of the database when I open the Report ?
I have an Oracle Database XE.
Posted

I am not sure about your architecture, but i will never recommend connecting directly to database from your reports in your .Net application. Very inflexible indeed, especially when you will change your server. Everytime you will need to fix connection details.

A way better approach is to add a middle layer, esp suitable for crystal report is a typed data set or even simply a schema.
This way all you will do is change the connection sting on the project level depending on your architecture.

You fill in the required tables/views in the dataset and then


<b>report.SetDataSource(yourdataset)</b>
 
Share this answer
 
v2
Hi
I have a .js file.I have referenced it in Master page on my Web site.I need to call that on Content page.I had called that on my content page but it shows an error knowing null :((
 
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