Solved

crystal reports, merging 2 report files (.rpt)

Posted on 2007-11-21
5
3,768 Views
Last Modified: 2012-08-13
I am a newbie to crystal reports and need some help.
I'm using the version that came with visual studio 2005.

here's the scenario.  i have 2 .rpt files that are fairly simliar but not exactly the same.  currently, in asp.net, they can select muliple rows from a datagrid, and depending on information from that row, i have to create the formula and pass it over to the report that the record belongs to for printing.  after they hit print, it creates one or more pdf files, depending on the conditions for each row selected.

what i would like to do is only call a single report, and depending on the conditions, that report would call another .rpt file (maybe in a subreport?)  and the result would be a pdf file that would have pages where some are from one rpt file and others from another

any suggestions on where to start?
0
Comment
Question by:mocaiv
  • 3
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 20330430
You could use a subreport and link it to the main report on the condition.

mlmcc
0
 

Author Comment

by:mocaiv
ID: 20330735
how do you bind that condition to the recordselectionformula?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 20330753
The link between the main report and subreport is automatically added to the subreport record selection.

mlmcc
0
 

Author Comment

by:mocaiv
ID: 20350512
currently i have a crystal repot with 4 subreports in the Detail section

depending on conditions for each record in the results, i want to call the specific report, and not show the other 3, im a bit lost on how to do this
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 20352551
Assuming you know the conditioin in the main report you can conditionally suppress the subreport or the section it is in

Right click the subreport
Click FORMAT SUBRPEPORT
Click the COMMON TAB
Click the formula button to the right of SUPPRESS
ENter the formula that evaluates TRUE when you want to suppress.

mlmcc
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now