Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Supress optional columns Post Reply Post New Topic
Author Message
mapon
Newbie
Newbie
Avatar

Joined: 23 Jun 2015
Location: Spain
Online Status: Offline
Posts: 3
Quote mapon Replybullet Topic: Supress optional columns
    Posted: 05 Aug 2015 at 10:56pm
I need to show/delete multiple columns of an invoice depending on the options the user select before displaying the report . I need to eliminate them, not hide them, because I do not want the blank is displayed.
I appreciate any help. Thanks.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 06 Aug 2015 at 4:33am
There is no way of eliminating a field on a report.  Depending of what version you have, you may be able to dynamically adjust the x position of the field (Works in Crystal 2011).  Still could be a complicated formula.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 14 Aug 2015 at 5:16am
I will second kevlray...Crystal needs the schema of the data to be the same. You can dynamically reposition and/or hide the columns in CR XI and beyond.

I once wrote a report where all columns were dynamically displayed and ordered. I don't recall it being overly complex, it was a bit tedious for a while.

The biggest caveat is that in movign the columns, the values are in twips which are 1440 to the inch, so adding 1 to the x position basically doesn't move the control at all.

I used a function in the report to move the columns around. Hiding and showing are pretty easy and depending on what the various parameters are could go a long way in the solution.

Too many options will make for a complex report, though anything is possible

Good luck
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.032 seconds.