Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have created a Main report in CrystalReports in an ASP.Net Webform(Visual Studio 2010) and want to add links to multiple fields in the MainReport table, each of which should open as a subReport. I was using the IsPostBack property while trying to view a single subreport. However on doing so i could not get back the MainReport on clicking the MainReport tab in the form once IsPostBack became true. What is the logic i can use to link my subReports to the desired data and how can i view back the MainReport again?

Please give me an idea, since i'm new to C# programming and CrystalReports too.
Please feel free to ask about any doubts or specifications. I've been trying this for over a week now.. still no luck!
Posted
Updated 30-Apr-12 19:52pm
v3
Comments
Vipin_Arora 1-May-12 2:13am    
Thanks for accepting the Answer ....
Happy Coding :)
pratip_gd 1-May-12 3:52am    
Thanks Vipin for the videos. Seeing the 1st video a very subtle way out occurred to me which i dont know why i've been overlooking all this while!! I had actually created 2 Webforms, one with methods calling storeprocs to get data for both the MainReport n the SubReport and the other for only the SubReport(which is the mainReport there). All this while i had been trying to show my subReport in the same form only. But now i tried to use the other Webform by selecting "Choose a Crystal Report in project" n selecting da other CrystalReport as the subReport, which will be displayed in the Webform2.
pratip_gd 1-May-12 3:52am    
the main report runs fine as usual... but unfortunately when i click da subreport link the same old Logon failed. Error in File CrystalReport3 {0254DEFD-251F-4E70-8746-DE5AE5FBFC4F}.rpt: Unable to connect: incorrect log on parameters. shows again. And CrystalReport3 is my report for the MainReport which shows the MainReport allright.[I haveremoved the subReport section from CrystalReport3 n commented out da code for it in da 1st Webform1.aspx.csfile].
Onclicking da subReport link da other CrystalReport which contains da subreport can't be loaded! Can u suggest anything??
pratip_gd 1-May-12 3:03am    
I am looking forward to another solution! Please Help

1 solution

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