[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

crystal reports, merging 2 report files (.rpt)

Posted on 2007-11-21
5
Medium Priority
?
3,887 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 2000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

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 …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

649 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