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 1:38AM
    Hi all

    I found the way to change the properties

    Thanks
    Rodrigo
  • edited 1:38AM
    Hi Rodrigo
    Tell me please how to make change Page Orientation
    and Page Size at runtime report ?
    Thanks

Leave a Comment