Solved

Launching a new report depending on results of sql - Crystal Reports

Posted on 2013-01-23
1
272 Views
Last Modified: 2013-01-25
I want the user to enter an order number into a report and then depending on what customer that order is associated to print one of 10 different report layouts. Is there a way to do that in crystal reports?

For example of the user enters 4311a (this is a sales order number) then the report file 1 would be displayed because customer 999 is associated to format 1.  The relationship between the order, the customer and the report format are in the database. I don't know if an .rpt file can call a new .rpt file.

Thanks
0
Comment
Question by:bmorriso99
1 Comment
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 38811734
You can create one main report and to add multiple subreports inside. Then create a sql which will return some flags to hide all the subreports not related to the parameter value
So if the user inserts 4311a  your sql will return 1 for all flags except for the one supressing subreport 1.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

896 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

13 Experts available now in Live!

Get 1:1 Help Now