Solved

crystal reports, merging 2 report files (.rpt)

Posted on 2007-11-21
5
3,727 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

14 Experts available now in Live!

Get 1:1 Help Now