How can I print different bands depending on the value of a Field in a DataSet?
Hi,
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? Is my problem clear?
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? Is my problem clear?
Comments
use the bands onbeforeprint event to perform the check and enable or disable the bands visible property.