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

edited December 2008 in FastReport 4.0
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?

Comments

  • edited 3:23PM
    Fabio wrote: »
    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?

    use the bands onbeforeprint event to perform the check and enable or disable the bands visible property.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.