Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 08-19-2008, 10:46 AM   #1 (permalink)
Member

Join Date: Jan 2007
Location: Chicago
Posts: 57
Rep Power: 2 CChesler is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)
- NetCommunity (BBNC)

Two questions - Basic Crystal XI Formatting

I am working in Crystal XI creating a very basic family directory. I have two formatting issues that I can't figure out.
One - I have a cell of just the Family Last Name. In those cases where the last name is hyphenated - like "Brantley-Jones" - I want to put a line break or hard return in at the point of the hyphen. I've tried an IF - Then - Replace - but I'm missing something.

Two - I have a section that can contain four lines -
Address
City, St, Zip
HomePhone
Email

In those cases where I have permission to publish the Home Phone - but not the address - I want to suppress the address lines so I don't have a blank space.

Thanks
__________________
Candace Chesler
The Frances Xavier Warde School
Chicago, IL
www.fxw.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-19-2008, 11:29 AM   #2 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

Quote:
Originally Posted by CChesler View Post
I am working in Crystal XI creating a very basic family directory. I have two formatting issues that I can't figure out.
One - I have a cell of just the Family Last Name. In those cases where the last name is hyphenated - like "Brantley-Jones" - I want to put a line break or hard return in at the point of the hyphen. I've tried an IF - Then - Replace - but I'm missing something.
You don't need to use the IF THEN part of the construction. Replace will return the original string if there are no instances of the search substring. A hard return is a cr/lf. You have to construct it using the function CHRW(). So you'll have something like Replace( {field}, "-", "-" & Chrw(13) & Chrw(10) ).

Quote:
Two - I have a section that can contain four lines -
Address
City, St, Zip
HomePhone
Email

In those cases where I have permission to publish the Home Phone - but not the address - I want to suppress the address lines so I don't have a blank space.
Right-click on the section name on the far left side and select the "Section Expert". Then next to "Suppress" click the formula button to create a formula based on your permission field(s).

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-19-2008, 11:30 AM   #3 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

I forgot to mention, that you'll need to put the address and the phone number in different sections for this to work. You can add another section by right-clicking and selecting "Add Section Below".

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
formula, line break, suppress


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Loans - Renegade motorhomes - Credit Card - Mortgage
All times are GMT -6. The time now is 03:51 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64