conditional printing

edited 2:27AM in FastReport 3.0
I have some records like this

field1 field2 field3 field4 field5 field6 field7
val01 val02 val03 val04 val05 val06 val07
val01 val02 val03 val04 val05 val06 val07
val01 val02 val03 val04 val01 val06 val07 not to print
val01 val02 val03 val04 val05 val06 val07
val01 val02 val03 val04 val05 val06 val07

How can I have to do to not print row 3, when field1=field5?

Actually I print in a master-detail mode with
. master print info from field1 to field4
. detail print info from field5 to field7

the two data use same TIBQuery with a very stupid SQL statement: SELECT * from mytabletoprint order by field1

Codebue Fabio
P-Soft

Comments

  • edited 2:27AM
    A couple of ways you can do it. Filter your dataset where Field3 <> Field5 is probably the easiest.

    OOP Programing 101 is whenever possible I don't like to filter my reports with a 3rd party tool because if you migrate from one tool to another it's too easy to miss something. Try creating two DataSet (Stored Procedures are great because they can be tweaked without having to do another code release)

    Wayne

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.