conditional printing

edited 8:44PM in FastReport 4.0
hello,

I want to do a conditional printing with a checkedbox on a dialog form.

I wrote this in the code but it doesn't work and gives an error
MasterData1.visible:=(CheckBox1.checked) or (not CheckBox1.checked and <frxDBDataset6."ARSTOCREEL"> > 0);

What I want is:
- print the masterdata if the CheckBox is checked
- print the masterdata if the CheckBox is not checked and <frxDBDataset6."ARSTOCREEL"> > 0

Regards

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:44PM
    what is the error showing?
  • edited 8:44PM
    hello,


    here is the message,
    It means that there is a mistake with the code (type mismatch)

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.