Change properties on runtime reports

Hi group

I want change some thinks at my runtime report, Could some give a help ?

1) Page Orientation
2) Page Size - i want set to A4 for example
3) Font Name
4) Font Size
5) BandView Height
6) TFrMemoView Height

I've made this code:

Form1.frReport1.Dictionary.Clear;
Form1.frReport1.Pages.Clear;
Form1.frReport1.Pages.Add;

Page := Form1.frReport1.Pages[0];
// Page.pgSize := 9;
// Page.pgOr := poLandscape;
Page.Prop := poLandscape;

b := TfrBandView.Create;
b.SetBounds(0, 0, 200, 20);
b.BandType := btMasterData;
Page.Objects.Add(b);

v := TfrMemoView.Create;
v.SetBounds(0, 0, 200, 16);
v.BandAlign := baRest;
v.Name := 'Memo1';
v.Memo.Add('[Cell]');
v.Script.Add('begin; ' + #13#10 + ' Font.Name = ' + '''Courier New;''' + #13#10 + 'end;' );
Page.Objects.Add(v);

Form1.frReport1.ShowReport;

The other properties (Cell) is provided by OnManualBuild and OnGetValue. The report is running ok, only the properties was not. What's the better way ?

Best Regards
Rodrigo

Comments

  • edited 11:23PM
    Hi all

    I found the way to change the properties

    Thanks
    Rodrigo
  • edited 11:23PM
    Hi Rodrigo
    Tell me please how to make change Page Orientation
    and Page Size at runtime report ?
    Thanks

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.