Solved

crystal reports, merging 2 report files (.rpt)

Posted on 2007-11-21
5
3,823 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 101

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 101

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 101

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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