Solved

Fake sub paragraph indentation in Crystal Reports Xl

Posted on 2009-04-06
8
855 Views
Last Modified: 2012-05-06
In Crystal reports, I have applied a formula to indent text if the display level exceeds 1.  If  the text exceeds the allocate space on the report it wraps around which is what I want it do.  However I want  the text that wrapped to the next line to align with the text above it.  See the attached example.
Indentation.doc
0
Comment
Question by:cookiejar
[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
  • 3
  • 3
  • 2
8 Comments
 
LVL 35

Expert Comment

by:James0628
ID: 24083497
I don't have CR XI, but I'm thinking that someone once mentioned here that one of the later CR versions (CR XI or maybe CR 2008) included some kind of indenting options in the field format.  You might start by looking for that.  I'm sorry, but I can't remember the details.

 Otherwise, one option is to manually break the field into separate lines, so that you can add spaces where you want to.

 But if you actually just want to indent the whole field based on another field, you may be able to just put a second copy of that field on the report, but moved a bit to the right, and suppress that field unless your "indent" condition is true.

 In the simplest case, let's say that that was the only field in your detail section.  You'd create a new detail section and put that field in it, but slightly to the right.  Then go into the section expert for the original detail section (right-click to the left of the detail section and select "Section Expert"), click the formula (X+2) button to the right of "suppress" and enter the following:

{DISPLAY_LEVEL} > 1


 Then go to the section expert for the new section and enter the following suppression formula:

{DISPLAY_LEVEL} <= 1

 You're specifying when the sections will be suppressed (not show), so the original section will show when the level is <= 1, and the second section will show when the level is > 1.

 How well that will work for you will depend on your report.

 James
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 24083799
There is an indenting option on the field format for CR XI but no way to control it through a formula.

You could possibly use the SIZE AND POSITION which has a formula for the X location but I think that will just move the field right and not shrink the width.

How many indents are you looking at?

mlmcc
0
 

Author Comment

by:cookiejar
ID: 24088588
mlmcc:

I can have as many as  20 indentations.   If the Display_Level is > 1, the field should be indented at each incremental level.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:cookiejar
ID: 24088911
I used the following formula for the X location to position the column but it doesn't move
If display_level  > 1 then
  .250 * {BE.Display_Level}
else
  .250

What am I doing wrong?
0
 

Author Comment

by:cookiejar
ID: 24093647
The solution that GRIPA1 posted was the solution to my problem.  Thank you, GRIPA1 .
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 24093960
Where is that comment?

mlmcc
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 24093978
0
 
LVL 35

Expert Comment

by:James0628
ID: 24094623
I'm pretty sure that's the "indentation option" I was thinking of.  Glad it worked for you too.  The duplication thing wouldn't have been much fun with 20 different levels.  :-)

 James
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

728 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