Click here to Skip to main content
16,021,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm trying to generate a subreport against each row of a field in the Mainreport by linking the subreports to a common field used in both the subreports and Mainreport(later suppressing that field in the subreports).

As it is, using the Subreport -> Links and selecting the desired field from the Mainreprt automatically generates a parameter field. Moreover i added a parameter from the 'Field explorer' linking that same field to da subreport; then i re-imported the subreport and from 'Change sub-report links' again selected the field to link to, the parameter name coming to be the same as the one i had added; also checking the box "Select data in the subreport based on field" and selecting da proper field to be linked to in the subreport (all to confirm da successful linking)

Still i get da message
CSS
Error
Logon failed. Error in File CrystalReport3 {282502EB-5A32-40D1-9EB0-5FD368493839}.rpt: Unable to connect: incorrect log on parameters.

on clicking any subreport link in da main report.

What else do i need to do to link the subreports to the Mainreport??

Please help! I'm not being ale to generate a single subreport for over 3days!
Posted
Comments
pratip_gd 2-May-12 3:16am    
What else can possibly be wrong in the CrystalReport3.rpt file?
pratip_gd 2-May-12 4:34am    
i have dropped the 'Parameter field i created' in the subreport Details Section
pratip_gd 2-May-12 5:20am    
PLEASE COME UP WITH SOME ANSWER GUYS!!! I HAVE TO GET IT DONE BY TODAY!!
ShaikhM 15-May-12 0:25am    
Did you solve the prblem? What did you do?

1 solution

Invalid logon details. Apply valid logon details dynamically at run time.
C# Crystal Reports Dynamic Logon parameters[^]
Also make sure you have applied logon details for subreports
Adding the Subreport Logon Code[^]
 
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