FreeSpace

edited 4:05AM in FastReport .NET
Hi,
I don't understand how it is calculated FreeSpace.
I want to draw in the last page a diagonal line in free space but the property FreeSpace not contains real free height.
How can I do?

Thanks.

Comments

  • edited 4:05AM
    Hello,

    It depends on where you access the FreeSpace property. Could you show me how you draw the line?
  • edited 4:05AM
    At first I put the code in to ReportSummary1_BeforePrint, now in to GroupFooter3_BeforeLayout (the last group, printed only in lastpage) and works perfectly.
    Last problem, in the User Manual is refers to Engine.PaperWidth but when i try execute the preview the messare error is:
    BC30456 'PaperWidth' is not a member of 'FastReport.Engine.ReportEngine'


    Private Sub GroupFooter3_BeforeLayout(ByVal sender As object, ByVal e As EventArgs)
    Dim X as New LineObject
    X.Top=0
    x.Left=0
    x.Diagonal=true
    'x.Width=Engine.PaperWidth
    x.Width=600
    x.Height=Engine.FreeSpace

    GroupFooter3.Objects.Add(X)

    End Sub


    Thanks.
  • edited 4:05AM
    Mistake in the doc, you should use PageWidth and PageHeight properties. I'll correct this.

Leave a Comment