Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Suppress a field at runtime

Posted on 2004-08-31
8
Medium Priority
?
548 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 500 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Make the most of your online learning experience.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

670 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