Solved

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

Posted on 2011-09-16
2
545 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

19 Experts available now in Live!

Get 1:1 Help Now