Solved

Crystal Reports XI R2 - Can we relative position two cells?

Posted on 2011-09-16
2
553 Views
Last Modified: 2012-05-12
Hi,
   I have a report, which has address fields, placed below one another.  
   Can i relatively position these address these cell fields so that if the top one has no address, then that cell will show "no addess found" and the below address will move up, to avoid the white space?

 Basically, the underlying issue is with the white space on a report.
My report is like a "Form".
If there is no data in some of the fields, then the below cells should be moved up and the the white space should be avoided. Is this possible?

Please advise.
 
0
Comment
Question by:pvsbandi
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 36552956
Crystal doesn't work that way.

However there are ways to get what you want.

Are these fields in a single record or does someone with 2 addresses have 2 records?

If this is a multifield address then
One way to handle this is through a formula

Local StringVar strAddress;
strAddress := ""

If Not IsNull({Addresfield1}) then
     strAddress := {Addresfield1};

If Not  IsNull({Addresfield2}) then
   If  strAddress = "" then
        strAddress := {Addresfield2}
Else
     strAddress := strAddress  & chr(13) & {Addresfield1};

etc for each field in the address.

Drop this on the report making it 1 "row" tall.  
You can format it to grow so it can handle the extra lines.

mlmcc
0
 

Author Closing Comment

by:pvsbandi
ID: 36553921
that seems an excellent solution to my problem! I'll try it out.

Thanks so much for the help!
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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