Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I am having a problem that when I click the link in the main report that leads to the subreport, the subreports asks for database credentials.

How do I keep the report from doing this?

Here are the photos:
C#
Main Report



Sub Report
- this is connected to the database (MS SQL) using OLE DB

Feel free to reply if you need more information

What I have tried:

I have tried the info above. The main report is connected using a dataset. I do not use codes by the way.
The subreport is connected using OLE DB
Posted
Updated 2-Oct-16 18:44pm

1 solution

 
Share this answer
 
Comments
bjay tiamsic 3-Oct-16 1:01am    
This uses codes, is it possible to set it up using crystal report interface?
Jean-Claude ADIBA 15-Oct-16 13:22pm    
yes it's possible to enter credential informations when you create the report (to locate the database), but i recommend you to do it in code to make dynamic because it's not sure that the credential of your dev environnement will be the same in production environment.

it's not best pratice but you can set your report credential directly in the production environment. and copy the file in application folder

you must do it manually for all reports and subreports (i suppose)

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

  Print Answers RSS


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