Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: How to suppress part of the text if field is empty Post Reply Post New Topic
Author Message
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Topic: How to suppress part of the text if field is empty
    Posted: 11 Nov 2016 at 6:04am
Hello,
I have an address text box, and inside it there are the company name field, address 1, 2, 3, and city, zip, state.

here:




in most companies, there is no data in address 2 and 3, and it shows as a space and i don't want that

also i cant eliminate those two fields from the text box because some other companies have that and the address won't be complete.

I want to suppress those two lines if there's no data. How do i do that?

Thanks..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Nov 2016 at 7:17am
depending on what version you are using the easiest way is:
right click on the text field
select Format Text
select Common Tab
check 'Suppress Embedded Field Blank Lines' as True


Edited by DBlank - 11 Nov 2016 at 7:17am
IP IP Logged
Beso90
Groupie
Groupie
Avatar

Joined: 12 Jun 2014
Location: United States
Online Status: Offline
Posts: 48
Quote Beso90 Replybullet Posted: 11 Nov 2016 at 8:49am
it actually worked. thanks a lot!!!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.