Solved

Conditional Printing in Crystal Report

Posted on 2008-10-10
2
1,096 Views
Last Modified: 2008-10-24
Hi Experts,

 I am designing a Crystal report where I need to print some labels conditionally, means If certain condition is true then only those labels should get displayed in the report else they should not. I am using Crystal Report 9.0.

My question is

1) Is it Possible?

2) If it is Then How to do it?


I want ask one more thing about crystal report. In the crystal report i hv taken two groups for different fields, every thing is working fine except for one. I hv used order by purchasedate clause in the query. I hv tested the query in backend its working fine there. But in the crystal report order by clause in not working. It is displaying the dates in random order. i dont know why its happening. Can any body tell me whats the reason and how to solve it.

Please help me out.

Thanx in advance.

Regards
Param
0
Comment
Question by:Paramhans
[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
2 Comments
 
LVL 6

Accepted Solution

by:
divyeshhdoshi earned 300 total points
ID: 22685159
Hi

Yes it is possible

right click on lable >> Format object >> Common Tab >> check Suppress >> click on Formula button of Suppress.
write formula for displaying that lable

eg.
if (i>0)
true
endif
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 200 total points
ID: 22687097
As above you can suppress fields conditionally.

The condition you use will suppress if it evaluates to true so if you have a condition that when true you want to display the label then you have to negate the condition in the suppression formula.

Using the above example if you wanted to display when a given field is positive you would suppress with

{YourField} <= 0

Data order.
Crystal uses the groups for the first sorting fields.

If you want it then in date order within the group you can
Click DATABASE --> RECORD SORT EXPERT
Add teh date field to the sort order.

mlmcc
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remove () 10 41
SQL Percentage Formula 7 33
Crystal Reports how to include multiple (many) items to one item in details 4 21
SQL: Transformation or Pivot 3 35
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how the fundamental information of how to create a table.

734 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