Format Fields

edited 10:31PM in FastReport 4.0
Hi,

I am trying to format a FrxMemoView field by code to shift the field to the left however it is not taking. Any suggestions? Below is a small snippet of the code.
Thank you!

begin
AgcyBranchTitle.Text := IntToStr(SQLQuery.FieldByName('PRODUCER').AsInteger);
ProducerNameFld.Text := SQLQuery.FieldByName('NAME').AsString;
AgencyName.Visible := False;
AgcyBranchTitle.Left := 0.8;
ProducerNameFld.Left := 1.4;

Comments

  • edited 10:31PM
    Hello cdpate,

    in which Event u are using the code?

    This works well:
    procedure MemoOnBeforePrint(Sender: TfrxComponent);
    begin  
       tfrxMemoView(Sender).left := 0;                            
    end;
    
    begin
    
    end.
    

    Greetz

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.