473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Crystal Reports: Conditional Suppression

The stuff below seems to work, when I am applying the logic for suppression.
However, it doesn't work when suppressing row data. Any Ideas?

Basically, if there is only one row of data, I need to suppress a caption
and it corresponding data field.
Create a formula field
@RowCount Formula Field

shared numbervar RowCount;
RowCount := RowCount +1

Add a condition to the object to suppress
Suppress Condition
{@RowCount}<2;

TIA
Nov 7 '05 #1
1 14510
I figured it out.

apply the same logic for the captions, for the field data

onlastrecord and recordnumber = 1;

because I would like the columns to "shift" to the left, I have two copies
of the caption and field on the report.

to suppress the "shifted" copy of the data field, I use XOR

onlastrecord xor recordnumber=1;

both recordnumber and onlastrecord are built in functions.

Hope that helps anyone.
"AMDRIT" <am****@hotmail.com> wrote in message
news:uB**************@tk2msftngp13.phx.gbl...
The stuff below seems to work, when I am applying the logic for
suppression. However, it doesn't work when suppressing row data. Any
Ideas?

Basically, if there is only one row of data, I need to suppress a caption
and it corresponding data field.
Create a formula field
@RowCount Formula Field

shared numbervar RowCount;
RowCount := RowCount +1

Add a condition to the object to suppress
Suppress Condition
{@RowCount}<2;

TIA

Nov 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sangeeta Poddar | last post by:
Hi All, I am having a problem with Crystal Report that comes with VS.Net. It goes like this: I have a page footer which needs to be suppressed conditionally. When the conditional suppression...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
5
by: Georgess | last post by:
Hi I have a problem with a crystal reports viewer I have developed with VS.Net 2003. Everything was working fine until I tried to view reports with suppression formulas... Eg. suppress (no Drill...
1
by: AMDRIT | last post by:
The stuff below seems to work, when I am applying the logic for suppression. However, it doesn't work when suppressing row data. Any Ideas? Basically, if there is only one row of data, I need to...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
0
by: lucoto | last post by:
Hello, I'm trying to use Crystal Reports in my application but I'm not sure if it's possible in Crystal to do what I need. My app generates an array of reports: Report rep_array; class Report...
0
by: nathancockram | last post by:
In the Cross-Tab Expert I have the following values: Columns --Table.ValY Rows --Table.ValX Summarized Fields --Table.Val1, Table.Val2, Table.Val3, Table.Val4, Table.Val5 CASE 1 CASE 2...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.