Joined: 14 Nov 2007
Online Status: Offline
Posts: 377
Posted: 24 Jan 2008 at 4:34am
The short answer is, you can't. Crystal is not designed to shift items horizontally, so you can't suppress a column.
There are two possibilities. If you look at the Size and Position option for your text boxes, you will note that you can apply a condition to the X value. So, you can control the horizontal placement based on whether or not the field is empty. However, note that you have to check the value of every column to the left, in order to collapse all the columns correctly. This will be tricky (and tedious) to code correctly.
The other option is to create multiple details sections, one for each possible configuration of columns. Then, just suppress any section except the configuration you want. However, this will create an issue for you, as it may be tricky to keep the gridlines lined up properly, especially if your columns are of different sizes.
Joined: 14 Dec 2007
Location: India
Online Status: Offline
Posts: 162
Posted: 24 Jan 2008 at 5:09am
hi
there is one more option. create formula for horizontal lines. for all the 4 columns. based on the columns data, u will be able to supress or show the formula i.e lines. or even change the colour accrodingly to your background color so that it will be not shown.
I don't wheter this is a correct method, but it will solve your problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum