473,796 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 14537
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******** ******@tk2msftn gp13.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
336
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 is in effect, Crystal Reports (CR) only suppresses the contents of the page footer; the space the page footers occupy still appears as large blank spaces at the bottom of the report.
3
6917
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
5027
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. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version, which I did, then reran WebSetup.msi and keeps giving me this error. "The installer was interrupted...
5
8430
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 Down) group header 3 when: DrillDownGroupLevel < this formula should return True or false and work fine when I run it in crystal report v9 but with the viewer I get the error message "Error in File ReportPath\ReportName.rp Error in formula...
1
373
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 suppress a caption and it corresponding data field. Create a formula field @RowCount Formula Field
3
8924
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 from sql server) and I was wondering whish of these is the better tool .. We're still not sure if they'll be loaded from an existing VB6 application or if I'll have to make a separate module for them (in .Net). In general, which is the better tool?...
0
1243
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 { int some; int useless;
0
1286
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 Table.Val1 :: 0 3 Table.Val2 :: 0 0
3
3827
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 dataset and link it to a reportviewer than any Crystal Report book will do. I use vb.net but im assuming most books would show you vb and c
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.