runtime disable field in fast report

edited 10:24AM in FastReport 3.0
Hi I would like to know how to write the code in dephi or fast report that runtime to disable the frxMemoView component in fast report?
for example, if the field is null, i want to that field not shown on the report.

Thanks.

Comments

  • edited 10:24AM
    In script code:
    procedure Memo1OnBeforePrint(Sender: TfrxComponent);
    begin
      If <ADOTable1."Species No"> = NULL then
      Memo1.Visible := false
      else
      Memo1.Visible := True;
    end;
    
  • edited 10:24AM
    Thanks! what if I used frxDBDataset2? how to invisible a field?

    I tried this
    if <frxDBDataset2."REFERENCE"> = NULL then
    Memo40.Visible := false;
    but it doesn't work.
  • edited 10:24AM
    Set Report.EngineOptions.ConvertNulls to false.
  • edited 10:24AM
    sorry i made a mistake. It works fine now. thanks a lot

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.