Search code examples
c#.netcrystal-reports

Crystal Reports - How to get rid of empty fields?


Let's say I have two fields (one under another). By default I want to have both of them rendered, but when the first field is empty, I would like the second one to take its place. Is there any convenient way to achieve this?

Note: My problem is much more complex, and a "scalable" solution would be highly appreciated.

I've found a cumbersome method, but I'm still looking for something better.


Solution

  • I finally came up with a better solution. The solution is to create a table in a DataSet, and insert a subreport selecting the table as its data source. Now you can add rows dynamically to the table (depending on some conditions).