Solved

Fake sub paragraph indentation in Crystal Reports Xl

Posted on 2009-04-06
8
831 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 34

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 100

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
 

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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

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

Expert Comment

by:mlmcc
ID: 24093960
Where is that comment?

mlmcc
0
 
LVL 100

Accepted Solution

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

18 Experts available now in Live!

Get 1:1 Help Now