Change report font size at runtime

edited 8:27AM in FastReport 4.0
Hi
Could someone tell me how I can change a font size of a memo or band at runtime eg the user can select a font size at runtime before the report is shown

Thanks

Meee

Comments

  • gpigpi
    edited 8:27AM
    Use for example

    TfrxMemoView(frxReport1.FindObject('Memo1')).Font.Size := 12;
    frxReport1.ShowReport;
  • gordkgordk St.Catherines On. Canada.
    edited August 2011
    if the memoview's parentfont property is set to true you only need to set the bands font size to
    change all the memos within a band.
    and to go a step further if the band's parentfont property is set to true you can modify all by changing the page font only
  • edited 8:27AM
    gordk wrote: »
    if the memoview's parentfont property is set to true you only need to set the bands font size to
    change all the memos within a band.
    and to go a step further if the band's parentfont property is set to true you can modify all by changing the page font only

    How would I code that?

    thanks

    colin
  • gpigpi
    edited 8:27AM
    TfrxMasterData(frxReport1.FindObject('MasterData1')).Font.Size := 12;
  • edited 8:27AM
    gpi wrote: »
    TfrxMasterData(frxReport1.FindObject('MasterData1')).Font.Size := 12;

    thanks
    how would I do the whole report rather than a band?

    meee
  • gpigpi
    edited 8:27AM
    TfrxReportPage(frxReport1.FindObject('Page1')).Font.Size := 12;
  • edited 8:27AM
    gpi wrote: »
    TfrxReportPage(frxReport1.FindObject('Page1')).Font.Size := 12;


    Thanks

    Meee

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.