Solved

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

Posted on 2011-09-16
2
569 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

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. …
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 …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

622 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