Solved

Suppress a field at runtime

Posted on 2004-08-31
8
542 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
  • 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
 

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
This is about my first experience with programming Arduino.
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now