Solved

crystal reports, merging 2 report files (.rpt)

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…

738 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