FormNewPage and Script

Hi...I am new here and need some help...

I am just trying : Band.FormNewPage := True in the OnBeforePrint Script and doesn't work!


Thanks!

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:14AM
    in which onbeforeprint event ?
    syntax bandname.FormNewPage:= true;
    since you are using formnewpage it appears you are asking about fr3
    if so then please post in fr3 forum in future.
    ;)
  • edited 2:14AM
    The OnBeforePrint of TFrBandView. I'am using FastReport 2.5.

  • gordkgordk St.Catherines On. Canada.
    edited 2:14AM
    you can't modify the prop at that point as the engine is already processing.
    you could from a frdialog at the start
    ie onclick of button
    band4.formnewpage := checkbox1.checked.

    however you can force a new page
    ie in a databand
    if [Line#]>1 then NewPage;
    ;)
  • edited 2:14AM
    Thank's!!!!

    It works!!!

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.