Solved

Suppress a field at runtime

Posted on 2004-08-31
8
547 Views
Last Modified: 2008-02-01
hi friends,
how can we suppress a field in crystal report from VB at run time if the field is empty.
0
Comment
Question by:satdream
[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
  • 5
  • 2
8 Comments
 
LVL 5

Expert Comment

by:rsriprac
ID: 11941719
Set the field to hide if content is = null.

-Ram
0
 
LVL 5

Expert Comment

by:WesleySaysHi
ID: 11941833
0
 

Author Comment

by:satdream
ID: 11944083
hi rsriprac,
if we hide the field, the space will be there. i need to ignore the space if the filed is empty. thankx for ur cooment
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:satdream
ID: 11944139
hi  WesleySaysHi,
thankx so much for the link that u gave to me. i'll test this replay to u.

0
 

Author Comment

by:satdream
ID: 11949731
hi  WesleySaysHi,
as ur link specified, i did everything. but still the space is there. how can i remove the space for that suppressed field.

thankx n regards
0
 
LVL 5

Accepted Solution

by:
WesleySaysHi earned 125 total points
ID: 11950737
Lets see.....

1. You read:

"you could create a subreport to replace all of the fields"

Known issue (maybe here was your problem?):

when a formula which tests for a blank field is created, even though the formula has no errors, it does not complete the requested action when the field is empty.

The following formula needs to be created to replace the actual database field on the report.

If IsNull({database.field}) then
" "
else
{database.field};

For Crystal reports 8 and up, about creating report and subreports at runtime you can read at:
http://support.businessobjects.com/library/kbase/articles/c2007211.asp


2. You read:

"Within your subreport you can split the rows into separate detail sections and supress fields / sections as needed"

About how to supress a blank subreport in Crystal Reports 9, read here:
http://www.businessobjects.com/search/?summary=1&ct=livewww-all&site=my_collection&client=my_collection&proxystylesheet=my_collection&output=xml_no_dtd&lr=lang_en&oe=utf8&ie=utf8&website=&q=how+to+suppress+blank+subreports+in+CR+9&btnG.x=19&btnG.y=14

In Crystal Reports 8.5 and earlier, a blank subreport cannot be suppressed.

Read how to supress a section that containes a blank subreport in CR 8.5, if interested:
http://support.businessobjects.com/library/kbase/articles/c2005853.asp

The rest should be clear.

Regards,

Wesley
0
 

Author Comment

by:satdream
ID: 11955904
hi WesleySaysHi
thankx so much. hope it will work. after check this i'll inform u

thankx n regards
Sathar
0
 

Author Comment

by:satdream
ID: 11979739
hi friends,
thankx so much all of them for try to solve my problem.

thankx n regrads
Sathar
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

628 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