Printing report conditionally

Leo BidiLeo Bidi Montevideo, Uruguay
edited 6:22AM in FastReport 4.0
Hi, all.

Have a report with a detail band and some fields connected to a database.

My client ask me to print this detail band only when applies certain condition, fex: field1 value = 100 and field2 value = 3

Where it's the best place to check this condition ? on detaild band OBP event or on each field OBP event ?

And the other requirement I have is that I have to check this condition only when printing the report but
not when previewing .. Is there any way to check if the client it's doing a preview or printing the report ?

Many thanks for any idea.

Best regads.

Leo

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.