Creating a report form from code

Hello !
I try to build a report from code.
Delphi XE3 Fast report 4.12.13 Embarcadero

help says :

Memo := TfrxMemoView.Create(Band);
Memo.CreateUniqueName;
Memo.Text := 'Hello FastReport!';
Memo.Height := 20;
Memo.Align := baWidth;

The memo is not stretched according to band???s width. It's on the left.
I try Memo.Align := baCenter but memo is not displayed.
How can I have a memo in center of the page ?


Thanks !



Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:14AM
    you have set the memoview's width to align to the full width of the band from left to right.
    if you want the text to be centered in the memo set the horizontalalign property to hacenter

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.