How can I print different bands depending on the value of a Field in a DataSet using FastReport?

I have a product's dataset and I want to have distinct bands for each type of product, something like, if the product is a fruit, print it's weight, if the product is a car print its color and so on.

And I want to let my users customize it, so each band for each type o product will be perfect.

My DataSet have all fields from all type of products and I have a field which determines the product type of the actual record.

Is there some easy to way to do it?


FastReports allows you to intercept the program's default report construction process with events at several useful places. If you have, for example a master band, in its OnBeforePrint event, you can put code that checks out the type of product and then a case statement could set the visible property to true only on detail bands that are the right kind of property.

I have found the news group at news:// to be an incredible source of help and encouragement. I am sure you can find a much better answer to your question there.

Need Your Help

minimum value for each unique id

sql sas proc-sql

This should be fairly simple and thanks in advance. I have a unique ID column and a start column populated with integers. I want to create a new column populated with the minimum start date for each

How to Make the Controller wait for a Delayed Job while the rest of the App continues on?

ruby-on-rails ruby ruby-on-rails-3 concurrency delayed-job

(This question is a follow-up to How do I handle long requests for a Rails App so other users are not delayed too much? )

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.