Print Page | Close Window

Sub report question.

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=3288
Printed Date: 05 May 2024 at 12:53am


Topic: Sub report question.
Posted By: yasinirshad
Subject: Sub report question.
Date Posted: 28 May 2008 at 11:10pm
Hi,
I have 2 questions.
My first question is how to include a sub report in a report. I have made 2 crystal reports named for eg. report1 and report2. report1 is my main report and report2 my sub report. I have a parameter "Date" when user selects date in main report from 1st Jan-2008 to 29-May 2008 , then in main report it will show summary of the date selected (for whole year), then as i click next pages, it shd show summary for month-wise (this coming from sub report). I tried inserting sub report this way
-Insert - sub report- insert subreport report choose a report (i browsed my subreport)- then how do i link it?
 
My second question is in asp.net, how do I EXPORT crystal report on users local drive..In windows appln (vb.net) it is possible but how to do it in asp.net?
 
Thanks to help.


-------------
Thanks,
Yasin.



Replies:
Posted By: hilfy
Date Posted: 29 May 2008 at 12:21pm
For your subreport question:
 
I usually create subreports directly inside the main reports instead of as a separate file.  Here's something that may work for you, though...
 
1.  Import the subreport into your main report.
2.  Link the subreport to the date params in your main report.
3.  Edit the subreport and delete your original date params.
4.  In the subreport, modify the Select Expert to use the parameters from the main report (they'll start with "PM" in the subreport) as if they were the original parameters that you just deleted.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics



Print Page | Close Window