PageEndless at Runtime

edited April 2013 in FastReport 4.0
I try to set PageEndless propety at Runtime.
Report := TfrxReport(frxHistory);
Report.LoadFromFile(file);
Report.OnMouseOverObject := nil;
Report.Preview := frxPreview1;
 Page:=TfrxReportPage(Report.FindObject(Report.Pages[0].Name));
 Page.EndlessHeight:= True;

  if Report.PrepareReport then
     Report.ShowPreparedReport;


But, when I show prepared report, there are margins between pages. I don't want them.

But, when I set the property in designer I get one long page.
Why?

Comments

  • edited 10:06PM
    I found the answer.
    Report.Pages[0].Name it is a 'Data' instead 'Page1'
    Correct form is Report.Pages[1].Name
  • edited 10:06PM
    doncht wrote: »
    Thanks for posting this. By the way, was it set to data by default?
    Do you actually use FR or program?
  • gordkgordk St.Catherines On. Canada.
    edited 10:06PM
    I don't think he does, he seems to have several other names like flogger, floger007 etc and just wastes everyones time.

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.