Solved

Concatenating Crystal Reports dynamically at Runtime

Posted on 2007-11-19
4
969 Views
Last Modified: 2013-11-26
Back-ground:
I created a Crystal reports viewer, embedding in an Access Form using:
CRAXDRT.application to load and open the report.
CRAXDRT.report + ADODB to change reports dataset anyway I need to.
CRystalActiveXViewer to display the report.

Problem:
I have a number of reports (the user can specify any combination of reports to run at any given time), that I would like to display at a single time in the CrystalActiveXViewer for viewing.  Currently, the CrystalActiveXviewer can only display one report at a time. So, I am looking for advice for the best way to merge separately rendered reports in to a single document.

I've tried creating one parent report with all of my reports linked together (like a giant left join) to the parent's report, but the Report runtime seem to increase exponentially (as each sub-report generates is one sub-query to the db-server for each parent record processed) to the point where The CrystalActiveXControl appears to be un-responsive for a small period of time.

What options do I have to combine reports into one document at runtime?
0
Comment
Question by:rabroersma
  • 2
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 20317593
At run time, I don't think you really have any options.

The only way to combine reports is to use subreports.

mlmcc
0
 
LVL 1

Author Comment

by:rabroersma
ID: 20317759
Rats!  :o)

Is it at all possible to remove any linking the parent and sub-reports and at run-time pass a record source to directly to the individual sub-reports and at the same time disable the sub-reports that I would not like displayed?
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 20317785
Yes you could do that.

You can use conditional suppression to hide the subreports you dont want. You would have to pass a list or a parameter to the main report.

mlmcc
0
 
LVL 1

Author Comment

by:rabroersma
ID: 20325490
Your idea to use conditional suppression really worked well.  Turning off all of the sub-reports that do not apply according to the set of records that I passed to the parent greatly increased the performance of the report.

Thanks for the direction!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

803 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