?
Solved

Fake sub paragraph indentation in Crystal Reports Xl

Posted on 2009-04-06
8
Medium Priority
?
873 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
  • 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
[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

 

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 2000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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 …
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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

840 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