Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I change the height of a group header? 1

Status
Not open for further replies.

JCruz063

Programmer
Feb 21, 2003
716
US
Hi All!

How can I change the Height of a Group Header using a formula?

The formula should say something like this:

[tt]if condition = true then
GroupHeader.Height = x
else
GroupHeader.Height = x / 2[/tt]

Where x is some number.

Thanks!

JC

_________________________________________________
To get the best response to a question, read faq222-2244.
 
Hi,
I've never seen a method to do that through a formula.

What do you want to accomplish?


[profile]
 
When asking how a solution might work, you should also indicate what it is that you need by supplying technical info:

Crystal version
database/connectivity used
Example data
Expected output

One means to increase a section size is by GROWING a field, another way to give the illusion is to have more than one section (right click and select insert section below) and conditionally suppress the other section(s) whose size is incorrect based on whatever criteria you're using.

-k
 
I don't think there's any way to control the height through a formula that way, but here's a possible workaround:

Create a formula:
//@GroupHeight
If Condition Then
Chr(13) + " "
Else
""

Drag the formula into the group header, format it to Can Grow, and adjust your group header to its default size.

If that won't work for you, the only other way I can think of to change the size of a section at runtime would be programatically (outside code).

-dave
 
Hi JC,

I do not think you can change the height of a Group Header using a formula.

An alternative may be to create another section in Group Header. ( Right Click on the Group Header and click Create Section Below ( Version 10)) - Now resize the heights of the two sections as required.

Then conditionally suppress the Group Header sections based on the condition.
 
Please forgive the lack of detail in my thread.

I'm using Crystal Reports 10, and I'm trying to print either 1 or two blank lines after every few records in my report (which prints in tabular fashion). I was trying to give the illusion of 1 or 2 blank lines by changing the height of the group header section of one of my groups. synapsevampire's method of an extra section will do the trick, though.

Thanks!

JC

_________________________________________________
To get the best response to a question, read faq222-2244.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top